Documentation ¶
Index ¶
Constants ¶
View Source
const ( SessionAuthMethodPassword = "password" SessionAuthMethodOidc = "oidc" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthRequest ¶
type AuthRequest struct { // ID is the unique id of the auth request ID string // CreatedAt is the time the AuthRequest was created CreatedAt time.Time // ClientID is the client id requesting authentication ClientID string // Identifier is the user-provided identifier Identifier string // IdentityProviderID is the upstream identity provider id IdentityProviderID *string // IdentityProvider is the upstream identity provider IdentityProvider *store.IdentityProvider // Scope is the client requested scope Scope string // LoginChallenge is the hydra login challenge LoginChallenge *string // ConsentChallenge is the hydra consent challenge ConsentChallenge *string // State is the oidc state variable State *string // IdentityID is the found identity ID IdentityID *string // Identity is the found identity Identity Identity }
type Credential ¶
type CredentialIdentifier ¶
type CredentialIdentifier struct { ID string CredentialID string Credential *Credential Identifier string }
type CredentialKind ¶
type CredentialKind string
const ( PasswordCredential CredentialKind = "password" OidcCredential CredentialKind = "oidc" )
type Identity ¶
type Identity struct { ID string State IdentityState Credentials []*Credential }
type IdentityState ¶
type IdentityState string
const ( IdentityStateActive IdentityState = "active" IdentityStateInactive IdentityState = "inactive" )
type Interface ¶
type Interface interface { GetAuthRequest(ctx context.Context, id string) (*AuthRequest, error) CreateAuthRequest(ctx context.Context, authRequest *AuthRequest) (*AuthRequest, error) UpdateAuthRequest(ctx context.Context, authRequest *AuthRequest) (*AuthRequest, error) GetIdentity(ctx context.Context, id string) (*Identity, error) FindOidcIdentifier(identifier string, identityProviderId string) (*CredentialIdentifier, error) CreateOidcIdentity(issuer string, identifier string, initialAccessToken string, initialRefreshToken string, initialIdToken string) (*Identity, error) }
type SessionAuthMethod ¶
type SessionAuthMethodKind ¶
type SessionAuthMethodKind string
Click to show internal directories.
Click to hide internal directories.