Versions in this module Expand all Collapse all v2 v2.0.0 Sep 25, 2025 Changes in this version + const ActionAccountDelete + const ActionBack + const ActionContinueToLoginOTP + const ActionContinueToLoginSecurityKey + const ActionContinueToOTPSecretCreation + const ActionContinueToPasscodeConfirmation + const ActionContinueToPasscodeConfirmationRecovery + const ActionContinueToPasskeyRegistration + const ActionContinueToPasswordLogin + const ActionContinueToPasswordRegistration + const ActionContinueToSecurityKeyCreation + const ActionContinueWithLoginIdentifier + const ActionEmailAddressSet + const ActionEmailCreate + const ActionEmailDelete + const ActionEmailSetPrimary + const ActionEmailVerify + const ActionExchangeToken + const ActionOTPCodeValidate + const ActionOTPCodeVerify + const ActionOTPSecretDelete + const ActionPasswordCreate + const ActionPasswordDelete + const ActionPasswordLogin + const ActionPasswordRecovery + const ActionPasswordUpdate + const ActionPatchMetadata + const ActionRegisterClientCapabilities + const ActionRegisterLoginIdentifier + const ActionRegisterPassword + const ActionRememberMe + const ActionResendPasscode + const ActionSecurityKeyCreate + const ActionSecurityKeyDelete + const ActionSessionDelete + const ActionSkip + const ActionThirdPartyOAuth + const ActionTrustDevice + const ActionUsernameCreate + const ActionUsernameDelete + const ActionUsernameUpdate + const ActionVerifyPasscode + const ActionWebauthnCredentialCreate + const ActionWebauthnCredentialDelete + const ActionWebauthnCredentialRename + const ActionWebauthnGenerateCreationOptions + const ActionWebauthnGenerateRequestOptions + const ActionWebauthnVerifyAssertionResponse + const ActionWebauthnVerifyAttestationResponse + const CategoryLegal + const CategoryOauth + const CategoryOther + const FlowCapabilities + const FlowCredentialOnboarding + const FlowCredentialUsage + const FlowDeviceTrust + const FlowLogin + const FlowMFACreation + const FlowMFAUsage + const FlowProfile + const FlowRegistration + const FlowUserDetails + const StashPathCreateMFAOnlyCredential + const StashPathDeviceTrustGranted + const StashPathEmail + const StashPathEmailVerified + const StashPathLoginMethod + const StashPathLoginOnboardingCreateEmail + const StashPathLoginOnboardingScheduled + const StashPathMFAUsageMethod + const StashPathNewPassword + const StashPathOTPImageSource + const StashPathOTPSecret + const StashPathPasscodeEmail + const StashPathPasscodeID + const StashPathPasscodeTemplate + const StashPathPasswordRecoveryPending + const StashPathRememberMeSelected + const StashPathSecurityKeyAttachmentSupported + const StashPathSkipUserCreation + const StashPathThirdPartyProvider + const StashPathUserHasEmails + const StashPathUserHasOTPSecret + const StashPathUserHasPasskey + const StashPathUserHasPassword + const StashPathUserHasSecurityKey + const StashPathUserHasUsername + const StashPathUserHasWebauthnCredential + const StashPathUserID + const StashPathUserIdentification + const StashPathUsername + const StashPathWebauthnAvailable + const StashPathWebauthnConditionalMediationAvailable + const StashPathWebauthnCredentials + const StashPathWebauthnPlatformAuthenticatorAvailable + const StashPathWebauthnSessionDataID + const StateCredentialOnboardingChooser + const StateDeviceTrust + const StateError + const StateLoginInit + const StateLoginMethodChooser + const StateLoginOTP + const StateLoginPasskey + const StateLoginPassword + const StateLoginPasswordRecovery + const StateLoginSecurityKey + const StateMFAMethodChooser + const StateMFAOTPSecretCreation + const StateMFASecurityKeyCreation + const StateOnboardingCreatePasskey + const StateOnboardingEmail + const StateOnboardingUsername + const StateOnboardingVerifyPasskeyAttestation + const StatePasscodeConfirmation + const StatePasswordCreation + const StatePreflight + const StateProfileAccountDeleted + const StateProfileInit + const StateProfileWebauthnCredentialVerification + const StateRegistrationInit + const StateSuccess + const StateThirdParty + var ErrorEmailAlreadyExists = flowpilot.NewInputError("email_already_exists", "The email address already exists.") + var ErrorInvalidMetadata = flowpilot.NewInputError("invalid_metadata_error", "The metadata is invalid.") + var ErrorInvalidUsername = flowpilot.NewInputError("invalid_username_error", "The username is invalid.") + var ErrorNotFound = flowpilot.NewFlowError("not_found", "The requested resource was not found.", http.StatusNotFound) + var ErrorPasscodeInvalid = flowpilot.NewInputError("passcode_invalid", "The passcode is invalid.") + var ErrorPasscodeMaxAttemptsReached = flowpilot.NewFlowError("passcode_max_attempts_reached", ...) + var ErrorPasskeyInvalid = flowpilot.NewFlowError("passkey_invalid", "The passkey is invalid.", http.StatusUnauthorized) + var ErrorPlatformAuthenticatorRequired = flowpilot.NewFlowError("platform_authenticator_required", ...) + var ErrorRateLimitExceeded = flowpilot.NewFlowError("rate_limit_exceeded", "The rate limit has been exceeded.", ...) + var ErrorUnauthorized = flowpilot.NewFlowError("unauthorized", "The session is invalid.", http.StatusUnauthorized) + var ErrorUnknownEmail = flowpilot.NewInputError("unknown_email_error", "The email address is unknown.") + var ErrorUnknownUsername = flowpilot.NewInputError("unknown_username_error", "The username is unknown.") + var ErrorUsernameAlreadyExists = flowpilot.NewInputError("username_already_exists", "The username already exists.") + var ErrorWebauthnCredentialInvalidMFAOnly = flowpilot.NewFlowError("webauthn_credential_invalid_mfa_only", ...) + func LegalLink(name string, href string) flowpilot.Link + func OAuthLink(name string, href string) flowpilot.Link + func OtherLink(name string, href string) flowpilot.Link + type Action struct + func (a *Action) GetDeps(c flowpilot.Context) *Dependencies + type Back struct + func (a Back) Execute(c flowpilot.ExecutionContext) error + func (a Back) GetDescription() string + func (a Back) GetName() flowpilot.ActionName + func (a Back) Initialize(c flowpilot.InitializationContext) + type Dependencies struct + AuditLogger auditlog.Logger + AuthenticatorMetadata mapper.AuthenticatorMetadata + Cfg config.Config + HttpContext echo.Context + OTPRateLimiter limiter.Store + PasscodeRateLimiter limiter.Store + PasscodeService services.Passcode + PasswordRateLimiter limiter.Store + PasswordService services.Password + Persister persistence.Persister + SamlService saml.Service + SessionManager session.Manager + TokenExchangeRateLimiter limiter.Store + Tx *pop.Connection + WebauthnService services.WebauthnService + type EmailPersistVerifiedStatus struct + func (h EmailPersistVerifiedStatus) Execute(c flowpilot.HookExecutionContext) error + type ExchangeToken struct + func (a ExchangeToken) Execute(c flowpilot.ExecutionContext) error + func (a ExchangeToken) GetDescription() string + func (a ExchangeToken) GetName() flowpilot.ActionName + func (a ExchangeToken) Initialize(c flowpilot.InitializationContext) + type GenerateOAuthLinks struct + func (h GenerateOAuthLinks) Execute(c flowpilot.HookExecutionContext) error + type GetUserData struct + func (h GetUserData) Execute(c flowpilot.HookExecutionContext) error + type IssueSession struct + func (h IssueSession) Execute(c flowpilot.HookExecutionContext) error + type PasswordSave struct + func (h PasswordSave) Execute(c flowpilot.HookExecutionContext) error + type ScheduleMFACreationStates struct + func (h ScheduleMFACreationStates) Execute(c flowpilot.HookExecutionContext) error + type Skip struct + func (a Skip) Execute(c flowpilot.ExecutionContext) error + func (a Skip) GetDescription() string + func (a Skip) GetName() flowpilot.ActionName + func (a Skip) Initialize(c flowpilot.InitializationContext) + type ThirdPartyOAuth struct + func (a ThirdPartyOAuth) Execute(c flowpilot.ExecutionContext) error + func (a ThirdPartyOAuth) GetDescription() string + func (a ThirdPartyOAuth) GetName() flowpilot.ActionName + func (a ThirdPartyOAuth) Initialize(c flowpilot.InitializationContext) + type VerifyAttestationResponse struct + func (h VerifyAttestationResponse) Execute(c flowpilot.HookExecutionContext) error + type WebauthnCredentialSave struct + func (h WebauthnCredentialSave) Execute(c flowpilot.HookExecutionContext) error