Documentation
¶
Overview ¶
Package adminidentity exposes reusable identity-administration HTTP handlers for Workflow auth consumers.
Index ¶
- Constants
- Variables
- func NewHandler(options Options) (http.Handler, error)
- type AddPasskeyCredentialInput
- type AddTOTPCredentialInput
- type Authorizer
- type ConformanceOptions
- type ConformanceResult
- type Credential
- type CredentialStore
- type IssueSetupCodeInput
- type ListUsersFilter
- type Options
- type Principal
- type PrincipalResolver
- type ProfileUpdater
- type RouteProbe
- type Session
- type SessionIssuer
- type SessionRequest
- type SetupCode
- type SetupCodeStore
- type StepCall
- type StepInvoker
- type UpdateProfileInput
- type User
- type UserStore
Constants ¶
View Source
const ( CredentialKindPasskey = "passkey" CredentialKindTOTP = "totp" )
Variables ¶
Functions ¶
Types ¶
type AddTOTPCredentialInput ¶
type Authorizer ¶
type ConformanceOptions ¶
type ConformanceResult ¶
func CheckConformance ¶
func CheckConformance(options ConformanceOptions) ConformanceResult
type Credential ¶
type CredentialStore ¶
type CredentialStore interface {
ListCredentials(context.Context, string) ([]Credential, error)
AddTOTPCredential(context.Context, string, AddTOTPCredentialInput) (Credential, error)
AddPasskeyCredential(context.Context, string, AddPasskeyCredentialInput) (Credential, error)
}
type IssueSetupCodeInput ¶
type ListUsersFilter ¶
type ListUsersFilter struct {
Principal Principal
}
type Options ¶
type Options struct {
PagePath string
ProfilePath string
CredentialsPath string
PasskeyBeginPath string
PasskeyFinishPath string
TOTPBeginPath string
TOTPVerifyPath string
UsersPath string
SetupRedeemPath string
SetupLoginPath string
LogoutPath string
PrincipalResolver PrincipalResolver
UserStore UserStore
CredentialStore CredentialStore
SetupCodeStore SetupCodeStore
SessionIssuer SessionIssuer
StepInvoker StepInvoker
Authorizer Authorizer
LogoutHandler http.Handler
}
Options configures the identity admin handler. The host owns persistence and policy by supplying typed adapters.
type PrincipalResolver ¶
type ProfileUpdater ¶ added in v0.3.12
type RouteProbe ¶
type RouteProbe struct {
Name string
Method string
Path string
ExpectedStatus int
RequireBody bool
}
func DefaultRoutesForOptions ¶
func DefaultRoutesForOptions(options Options) []RouteProbe
type SessionIssuer ¶
type SessionIssuer interface {
IssueSession(context.Context, SessionRequest) (Session, error)
}
type SessionRequest ¶
type SetupCodeStore ¶
type StepInvoker ¶
type UpdateProfileInput ¶ added in v0.3.12
Click to show internal directories.
Click to hide internal directories.