testing

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 42 Imported by: 0

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

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL