Documentation ¶
Index ¶
Constants ¶
View Source
const ( // OIDCServerURL - will be accessed as Environment variable OIDCServerURL = "OIDC_SERVER_URL" // OpenidConfiguration is the discovery point on the OIDC server OpenidConfiguration = ".well-known/openid-configuration" // HS prefix for HS family algorithms HS = "HS" // RS prefix for RS family algorithms RS = "RS" )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 {
// contains filtered or unexported fields
}
JwtAuthenticator jwt authenticator
func (*JwtAuthenticator) ParseAndValidate ¶ added in v0.6.10
func (j *JwtAuthenticator) ParseAndValidate(tokenString string) (jwt.MapClaims, error)
ParseAndValidate parse a jwt string token and validate it
Click to show internal directories.
Click to hide internal directories.