Documentation ¶
Index ¶
Constants ¶
View Source
const (
SharedSecretKey = "SHARED_SECRET_KEY"
)Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface { // Authenticate authenticate a given string token Authenticate(string) (jwt.MapClaims, error) }
Authenticator an authenticator interface to implement different authentication methods
type JwtAuthenticator ¶
type JwtAuthenticator struct{}
JwtAuthenticator jwt authenticator
func (*JwtAuthenticator) Authenticate ¶
func (j *JwtAuthenticator) Authenticate(tokenString string) (jwt.MapClaims, error)
Authenticate parse a jwt string token and authenticate it
Click to show internal directories.
Click to hide internal directories.