Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UserCtxKey = &ctxKey{name: "user"}
UserCtxKey is the context key for users
Functions ¶
This section is empty.
Types ¶
type Auth0OpenID ¶
type Auth0OpenID struct { Issuer string `json:"issuer"` AuthorizationEndpoint string `json:"authorization_endpoint"` TokenEndpoint string `json:"token_endpoint"` UserinfoEndpoint string `json:"userinfo_endpoint"` MfaChallengeEndpoint string `json:"mfa_challenge_endpoint"` JwksURI string `json:"jwks_uri"` RegistrationEndpoint string `json:"registration_endpoint"` RevocationEndpoint string `json:"revocation_endpoint"` ScopesSupported []string `json:"scopes_supported"` ResponseTypesSupported []string `json:"response_types_supported"` CodeChallengeMethodsSupported []string `json:"code_challenge_methods_supported"` ResponseModesSupported []string `json:"response_modes_supported"` SubjectTypesSupported []string `json:"subject_types_supported"` IDTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"` TokenEndpointAuthMethodsSupported []string `json:"token_endpoint_auth_methods_supported"` ClaimsSupported []string `json:"claims_supported"` RequestURIParameterSupported bool `json:"request_uri_parameter_supported"` DeviceAuthorizationEndpoint string `json:"device_authorization_endpoint"` }
type AuthMiddleware ¶
func CreateMiddleware ¶
func CreateMiddleware(serverConfig *utils.ServerConfig, orm *orm.ORM) AuthMiddleware
Click to show internal directories.
Click to hide internal directories.