Documentation ¶
Index ¶
- Constants
- func AuthenticateMiddleware(target http.HandlerFunc) http.Handler
- func DecodeBase64String(value string) (string, error)
- func EncodeString(value string) (string, error)
- func GenerateUserToken(email string) (string, string)
- func GetAuthorizationToken(request http.Header) (string, bool)
- func SHA256Encode(value string) string
- func ValidateToken(token string) bool
Constants ¶
View Source
const ( Issuer = "Ittech24.co.uk" LoginScope = "authorization" PrivateKey = "somerandomshit" )
Security Constants
Variables ¶
This section is empty.
Functions ¶
func AuthenticateMiddleware ¶
func AuthenticateMiddleware(target http.HandlerFunc) http.Handler
func DecodeBase64String ¶ added in v0.0.10
func EncodeString ¶ added in v0.0.10
func GenerateUserToken ¶
GenerateUserToken generates a jwt user token
func ValidateToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.