Documentation
¶
Index ¶
Constants ¶
View Source
const ( RedirectUrl = "https://example.com/redirect" State = "test-state" OauthCode = "test-code" OauthFlowId = "test-oauth-flow-id" Domain = "example.com" EmailAddress = "test@example.com" KeyId = "test-key-id" Role = "test-role" AccountId = "test-account-id" AuthenticationId = "test-authentication-id" Subject = "test-provider-subject" OauthErrorCode = "oauth_error" OauthStrongAuthenticationCode = "strong_authentication" OauthOrganizationCode = "organization" Organization = "example-organization" OauthSkipIdTokenCode = "skip_id_token" OauthInvalidIdTokenCode = "invalid_id_token" OauthUnverifiedEmailAddressCode = "unverified_email_address" OauthEmptyEmailAddressCode = "empty_email_address" JwksPath = "/.well-known/jwks.json" TokenPath = "/oauth/token" )
Variables ¶
This section is empty.
Functions ¶
func SetUp ¶
func SetUp() (*session_manager.Manager, *authenticator.AuthenticatorWithKeyHandler, *motmedelOauth2Config.Config, *motmedelCryptoEcdsa.Method)
Types ¶
type ProviderClaims ¶
type ProviderClaims struct {
EmailAddress string `json:"email_address"`
Verified bool `json:"verified"`
Amr []string `json:"amr,omitzero"`
Organization string `json:"organization,omitzero"`
Sub string `json:"sub,omitzero"`
}
func (*ProviderClaims) AuthenticationContext ¶
func (c *ProviderClaims) AuthenticationContext() *provider_claims.AuthenticationContext
func (*ProviderClaims) OrganizationIdentifier ¶
func (c *ProviderClaims) OrganizationIdentifier() string
func (*ProviderClaims) Subject ¶
func (c *ProviderClaims) Subject() string
func (*ProviderClaims) VerifiedEmailAddress ¶
func (c *ProviderClaims) VerifiedEmailAddress() (string, error)
Click to show internal directories.
Click to hide internal directories.