Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeyFunc ¶
func GetKeyFunc(oidcDiscovery *OIDCDiscovery) (k keyfunc.Keyfunc, err error)
Types ¶
type Authorizer ¶
type Authorizer struct {
OidcDiscovery *OIDCDiscovery
//JWKSKeys *JSONWebKeys
KeyFunc keyfunc.Keyfunc
Audience string
}
Authorizer represents an authorizer object
func NewAuthorizer ¶
func NewAuthorizer(oidcDiscoveryURL string) (*Authorizer, error)
func NewAuthorizerWithAudience ¶
func NewAuthorizerWithAudience(oidcDiscoveryURL string, audience string) (*Authorizer, error)
func (*Authorizer) ParseAndVerifyToken ¶
func (a *Authorizer) ParseAndVerifyToken(tokenString string) (jwt.MapClaims, error)
type OIDCDiscovery ¶
type OIDCDiscovery struct {
AuthorizationEndpoint string `json:"authorization_endpoint"`
TokenEndpoint string `json:"token_endpoint"`
JWKSURI string `json:"jwks_uri"`
Issuer string `json:"issuer"`
}
func Discovery ¶
func Discovery(oidcDiscoveryURL string) (*OIDCDiscovery, error)
Click to show internal directories.
Click to hide internal directories.