Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWKS ¶
type JWKS struct { Keys []struct { Kty string `json:"kty"` Use string `json:"use"` Kid string `json:"kid"` X5T string `json:"x5t"` E string `json:"e"` N string `json:"n"` X5C []string `json:"x5c"` } `json:"keys"` }
JWKS Type used to deserialize the JWKS values
type OpenIDConfig ¶
type OpenIDConfig struct { Issuer string `json:"issuer"` JwksURI string `json:"jwks_uri"` AuthorizationEndpoint string `json:"authorization_endpoint"` TokenEndpoint string `json:"token_endpoint"` UserinfoEndpoint string `json:"userinfo_endpoint"` EndSessionEndpoint string `json:"end_session_endpoint"` CheckSessionIframe string `json:"check_session_iframe"` RevocationEndpoint string `json:"revocation_endpoint"` IntrospectionEndpoint string `json:"introspection_endpoint"` FrontchannelLogoutSupported bool `json:"frontchannel_logout_supported"` FrontchannelLogoutSessionSupported bool `json:"frontchannel_logout_session_supported"` ScopesSupported []string `json:"scopes_supported"` ClaimsSupported []string `json:"claims_supported"` ResponseTypesSupported []string `json:"response_types_supported"` ResponseModesSupported []string `json:"response_modes_supported"` GrantTypesSupported []string `json:"grant_types_supported"` SubjectTypesSupported []string `json:"subject_types_supported"` IDTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"` TokenEndpointAuthMethodsSupported []string `json:"token_endpoint_auth_methods_supported"` CodeChallengeMethodsSupported []string `json:"code_challenge_methods_supported"` }
OpenIDConfig Type used to deserialize the OpenId configuration
type Validator ¶
type Validator interface { io.Closer UpdateKeys() error GetRSAPubKeys() []*rsa.PublicKey ValidateApplicationToken(accessToken string, requiredScopes ...string) (bool, error) GetAndValidateToken(accessToken string, requiredScopes ...string) (jwt.JWT, error) ValidateUserToken(accessToken string, requiredScopes ...string) (uint64, uint64, bool, error) GetOpenIDConfig() OpenIDConfig }
Validator describes common interface for all permission validators
Click to show internal directories.
Click to hide internal directories.