Documentation ¶
Index ¶
Constants ¶
View Source
const ( LoginDirective string = "login" SignupDirective string = "signup" PasswordResetDirective string = "password-reset" VerifyEmailDirective string = "verify-email" MFA_VerifyEmailDirective string = "mfa-verify-email" CancelDirective string = "cancel" )
View Source
const ( InternalError string = "internal-error" ExternalIDPNotLinked string = "external-idp-not-linked" UsernamePasswordNotFound string = "username-password-not-found" IdentityFound string = "identity-found" )
View Source
const ( URNIdpPrefix string = "urn:rage:idp:{idp_hint}" URLRootCandidate string = "urn:rage:root_candidate:{user_id}" )
urn prefixes
View Source
const ( OAuth2TokenType_Bearer = "bearer" OAuth2TokenType_JWT = "urn:ietf:params:oauth:token-type:jwt" OAuth2TokenType_IDToken = "urn:ietf:params:oauth:token-type:id_token" OAuth2TokenType_RefreshToken = "urn:ietf:params:oauth:token-type:refresh_token" OAuth2TokenType_AccessToken = "urn:urn:ietf:params:oauth:token-type:access_token" OAuth2GrantType_ClientCredentials = "client_credentials" OAuth2GrantType_RefreshToken = "refresh_token" OAuth2GrantType_TokenExchange = "urn:ietf:params:oauth:grant-type:token-exchange" OAUTH2GrantType_AuthorizationCode = "authorization_code" )
View Source
const ( ACRPassword = "urn:rage:password" ACRIdpRoot = "urn:rage:idp:root" ACR2FA = "urn:rage:loa:2fa" ACRIdp = "urn:rage:loa:idp:{idp}" ACRPasskey = "urn:rage:loa:passkey" )
View Source
const ( AMRPassword = "pwd" AMRMFA = "mfa" AMRIdp = "idp" AMRPasskey = "passkey" AMRTOTP = "totp" AMREmailCode = "emailcode" )
View Source
const ( WellknownIdpRoot = "root" WellknownIdpGoogle = "google" WellknownIdpGithub = "github" WellknownIdpMicrosoft = "microsoft" WellknownIdpApple = "apple" )
View Source
const ( ClaimTypeAcr = "acr" ClaimTypeSub = "sub" ClaimTypeIat = "iat" ClaimTypeExp = "exp" ClaimTypeNbf = "nbf" ClaimTypeJti = "jti" ClaimTypeIss = "iss" ClainTypeAud = "aud" ClaimTypeAzp = "azp" ClaimTypeNonce = "nonce" ClaimTypeAmr = "amr" )
View Source
const (
OIDCSessionName = "_oidc_session"
)
View Source
const (
RootIdp string = "root-idp"
)
Variables ¶
This section is empty.
Functions ¶
func ConvertFromInterface ¶
Types ¶
type DiscoveryDocument ¶
type DiscoveryDocument struct { Issuer string `json:"issuer,omitempty"` JwksURI string `json:"jwks_uri,omitempty"` AuthorizationEndpoint string `json:"authorization_endpoint,omitempty"` TokenEndpoint string `json:"token_endpoint,omitempty"` UserinfoEndpoint string `json:"userinfo_endpoint,omitempty"` EndSessionEndpoint string `json:"end_session_endpoint,omitempty"` CheckSessionIframe string `json:"check_session_iframe,omitempty"` RevocationEndpoint string `json:"revocation_endpoint,omitempty"` IntrospectionEndpoint string `json:"introspection_endpoint,omitempty"` DeviceAuthorizationEndpoint string `json:"device_authorization_endpoint,omitempty"` FrontchannelLogoutSupported bool `json:"frontchannel_logout_supported,omitempty"` FrontchannelLogoutSessionSupported bool `json:"frontchannel_logout_session_supported,omitempty"` BackchannelLogoutSupported bool `json:"backchannel_logout_supported,omitempty"` BackchannelLogoutSessionSupported bool `json:"backchannel_logout_session_supported,omitempty"` ScopesSupported []string `json:"scopes_supported,omitempty"` ClaimsSupported []string `json:"claims_supported,omitempty"` GrantTypesSupported []string `json:"grant_types_supported,omitempty"` ResponseTypesSupported []string `json:"response_types_supported,omitempty"` ResponseModesSupported []string `json:"response_modes_supported,omitempty"` TokenEndpointAuthMethodsSupported []string `json:"token_endpoint_auth_methods_supported,omitempty"` SubjectTypesSupported []string `json:"subject_types_supported,omitempty"` IDTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported,omitempty"` CodeChallengeMethodsSupported []string `json:"code_challenge_methods_supported,omitempty"` }
type LoginGetRequest ¶
type LoginGetRequest struct {
ReturnUrl string `param:"returnUrl" query:"returnUrl" form:"returnUrl" json:"returnUrl" xml:"returnUrl"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.