Documentation ¶
Index ¶
- Constants
- Variables
- type ID
- type Message
- func NewErrorSystemGeneric(reason string) *Message
- func NewErrorValidationAddressNotVerified() *Message
- func NewErrorValidationDuplicateCredentials() *Message
- func NewErrorValidationIdentifierMissing() *Message
- func NewErrorValidationInvalidCredentials() *Message
- func NewErrorValidationInvalidFormat(format, value string) *Message
- func NewErrorValidationLoginFlowExpired(ago time.Duration) *Message
- func NewErrorValidationLoginNoStrategyFound() *Message
- func NewErrorValidationLookupAlreadyUsed() *Message
- func NewErrorValidationLookupInvalid() *Message
- func NewErrorValidationMinLength(expected, actual int) *Message
- func NewErrorValidationNoLookup() *Message
- func NewErrorValidationNoTOTPDevice() *Message
- func NewErrorValidationNoWebAuthnDevice() *Message
- func NewErrorValidationPasswordPolicyViolation(reason string) *Message
- func NewErrorValidationRecoveryFlowExpired(ago time.Duration) *Message
- func NewErrorValidationRecoveryNoStrategyFound() *Message
- func NewErrorValidationRecoveryRetrySuccess() *Message
- func NewErrorValidationRecoveryStateFailure() *Message
- func NewErrorValidationRecoveryTokenInvalidOrAlreadyUsed() *Message
- func NewErrorValidationRegistrationFlowExpired(ago time.Duration) *Message
- func NewErrorValidationRegistrationNoStrategyFound() *Message
- func NewErrorValidationSettingsFlowExpired(ago time.Duration) *Message
- func NewErrorValidationSettingsNoStrategyFound() *Message
- func NewErrorValidationTOTPVerifierWrong() *Message
- func NewErrorValidationVerificationFlowExpired(ago time.Duration) *Message
- func NewErrorValidationVerificationNoStrategyFound() *Message
- func NewErrorValidationVerificationRetrySuccess() *Message
- func NewErrorValidationVerificationStateFailure() *Message
- func NewErrorValidationVerificationTokenInvalidOrAlreadyUsed() *Message
- func NewInfoLogin() *Message
- func NewInfoLoginLookup() *Message
- func NewInfoLoginLookupLabel() *Message
- func NewInfoLoginMFA() *Message
- func NewInfoLoginReAuth() *Message
- func NewInfoLoginTOTP() *Message
- func NewInfoLoginTOTPLabel() *Message
- func NewInfoLoginVerify() *Message
- func NewInfoLoginWith(provider string) *Message
- func NewInfoNodeInputPassword() *Message
- func NewInfoNodeLabelGenerated(title string) *Message
- func NewInfoNodeLabelID() *Message
- func NewInfoNodeLabelSave() *Message
- func NewInfoNodeLabelSubmit() *Message
- func NewInfoNodeLabelVerifyOTP() *Message
- func NewInfoRegistration() *Message
- func NewInfoRegistrationContinue() *Message
- func NewInfoRegistrationWith(provider string) *Message
- func NewInfoSelfServiceLoginWebAuthn() *Message
- func NewInfoSelfServiceRegisterWebAuthn() *Message
- func NewInfoSelfServiceRegisterWebAuthnDisplayName() *Message
- func NewInfoSelfServiceRemoveWebAuthn(name string, createdAt time.Time) *Message
- func NewInfoSelfServiceSettingsDisableLookup() *Message
- func NewInfoSelfServiceSettingsLookupConfirm() *Message
- func NewInfoSelfServiceSettingsLookupSecret(secret string) *Message
- func NewInfoSelfServiceSettingsLookupSecretList(secrets []string, raw interface{}) *Message
- func NewInfoSelfServiceSettingsLookupSecretUsed(usedAt time.Time) *Message
- func NewInfoSelfServiceSettingsLookupSecretsLabel() *Message
- func NewInfoSelfServiceSettingsRegenerateLookup() *Message
- func NewInfoSelfServiceSettingsRevealLookup() *Message
- func NewInfoSelfServiceSettingsTOTPQRCode() *Message
- func NewInfoSelfServiceSettingsTOTPSecret(secret string) *Message
- func NewInfoSelfServiceSettingsTOTPSecretLabel() *Message
- func NewInfoSelfServiceSettingsUpdateLinkOIDC(provider string) *Message
- func NewInfoSelfServiceSettingsUpdateSuccess() *Message
- func NewInfoSelfServiceSettingsUpdateUnlinkOIDC(provider string) *Message
- func NewInfoSelfServiceSettingsUpdateUnlinkTOTP() *Message
- func NewInfoSelfServiceVerificationSuccessful() *Message
- func NewRecoveryEmailSent() *Message
- func NewRecoverySuccessful(privilegedSessionExpiresAt time.Time) *Message
- func NewValidationErrorGeneric(reason string) *Message
- func NewValidationErrorRequired(missing string) *Message
- func NewVerificationEmailSent() *Message
- type Messages
- type Type
Constants ¶
View Source
const ( ErrIDNeedsPrivilegedSession = "session_refresh_required" ErrIDSelfServiceFlowExpired = "self_service_flow_expired" ErrIDSelfServiceBrowserLocationChangeRequiredError = "browser_location_change_required" ErrIDAlreadyLoggedIn = "session_already_available" ErrIDAddressNotVerified = "session_verified_address_required" ErrIDSessionHasAALAlready = "session_aal_already_fulfilled" ErrIDSessionRequiredForHigherAAL = "session_aal1_required" ErrIDHigherAALRequired = "session_aal2_required" ErrNoActiveSession = "session_inactive" ErrIDRedirectURLNotAllowed = "self_service_flow_return_to_forbidden" ErrIDInitiatedBySomeoneElse = "security_identity_mismatch" ErrIDCSRF = "security_csrf_violation" )
Variables ¶
View Source
var Now = time.Now
View Source
var Until = time.Until
Functions ¶
This section is empty.
Types ¶
type ID ¶
type ID int
const ( InfoSelfServiceLoginRoot ID = 1010000 + iota // 1010000 InfoSelfServiceLogin // 1010001 InfoSelfServiceLoginWith // 1010002 InfoSelfServiceLoginReAuth // 1010003 InfoSelfServiceLoginMFA // 1010004 InfoSelfServiceLoginVerify // 1010005 InfoSelfServiceLoginTOTPLabel // 1010006 InfoLoginLookupLabel // 1010007 InfoSelfServiceLoginWebAuthn // 1010008 InfoLoginTOTP // 1010009 InfoLoginLookup // 1010010 )
const ( ErrorValidationLogin ID = 4010000 + iota // 4010000 ErrorValidationLoginFlowExpired // 4010001 ErrorValidationLoginNoStrategyFound // 4010002 ErrorValidationRegistrationNoStrategyFound // 4010003 ErrorValidationSettingsNoStrategyFound // 4010004 ErrorValidationRecoveryNoStrategyFound // 4010005 ErrorValidationVerificationNoStrategyFound // 4010006 )
const ( ErrorValidationRecovery ID = 4060000 + iota // 4060000 ErrorValidationRecoveryRetrySuccess // 4060001 ErrorValidationRecoveryStateFailure // 4060002 ErrorValidationRecoveryMissingRecoveryToken // 4060003 ErrorValidationRecoveryTokenInvalidOrAlreadyUsed // 4060004 ErrorValidationRecoveryFlowExpired // 4060005 )
const ( InfoSelfServiceSettings ID = 1050000 + iota InfoSelfServiceSettingsUpdateSuccess InfoSelfServiceSettingsUpdateLinkOidc InfoSelfServiceSettingsUpdateUnlinkOidc InfoSelfServiceSettingsUpdateUnlinkTOTP InfoSelfServiceSettingsTOTPQRCode InfoSelfServiceSettingsTOTPSecret InfoSelfServiceSettingsRevealLookup InfoSelfServiceSettingsRegenerateLookup InfoSelfServiceSettingsLookupSecret InfoSelfServiceSettingsLookupSecretLabel InfoSelfServiceSettingsLookupConfirm InfoSelfServiceSettingsRegisterWebAuthn InfoSelfServiceSettingsRegisterWebAuthnDisplayName InfoSelfServiceSettingsLookupSecretUsed InfoSelfServiceSettingsLookupSecretList InfoSelfServiceSettingsDisableLookup )
const ( ErrorValidation ID = 4000000 + iota ErrorValidationGeneric ErrorValidationRequired ErrorValidationMinLength ErrorValidationInvalidFormat ErrorValidationPasswordPolicyViolation ErrorValidationInvalidCredentials ErrorValidationDuplicateCredentials ErrorValidationTOTPVerifierWrong ErrorValidationIdentifierMissing ErrorValidationAddressNotVerified ErrorValidationNoTOTPDevice ErrorValidationLookupAlreadyUsed ErrorValidationNoWebAuthnDevice ErrorValidationNoLookup )
const ( ErrorValidationVerification ID = 4070000 + iota // 4070000 ErrorValidationVerificationTokenInvalidOrAlreadyUsed // 4070001 ErrorValidationVerificationRetrySuccess // 4070002 ErrorValidationVerificationStateFailure // 4070003 ErrorValidationVerificationMissingVerificationToken // 4070004 ErrorValidationVerificationFlowExpired // 4070005 )
type Message ¶
type Message struct { // The message ID. // // required: true ID ID `json:"id"` // The message text. Written in american english. // // required: true Text string `json:"text"` // The message type. // // required: true Type Type `json:"type"` // The message's context. Useful when customizing messages. Context json.RawMessage `json:"context,omitempty" faker:"-"` }
swagger:model uiText
func NewErrorSystemGeneric ¶
func NewErrorValidationAddressNotVerified ¶
func NewErrorValidationAddressNotVerified() *Message
func NewErrorValidationDuplicateCredentials ¶
func NewErrorValidationDuplicateCredentials() *Message
func NewErrorValidationIdentifierMissing ¶
func NewErrorValidationIdentifierMissing() *Message
func NewErrorValidationInvalidCredentials ¶
func NewErrorValidationInvalidCredentials() *Message
func NewErrorValidationLoginNoStrategyFound ¶
func NewErrorValidationLoginNoStrategyFound() *Message
func NewErrorValidationLookupAlreadyUsed ¶
func NewErrorValidationLookupAlreadyUsed() *Message
func NewErrorValidationLookupInvalid ¶
func NewErrorValidationLookupInvalid() *Message
func NewErrorValidationNoLookup ¶
func NewErrorValidationNoLookup() *Message
func NewErrorValidationNoTOTPDevice ¶
func NewErrorValidationNoTOTPDevice() *Message
func NewErrorValidationNoWebAuthnDevice ¶
func NewErrorValidationNoWebAuthnDevice() *Message
func NewErrorValidationRecoveryNoStrategyFound ¶
func NewErrorValidationRecoveryNoStrategyFound() *Message
func NewErrorValidationRecoveryRetrySuccess ¶
func NewErrorValidationRecoveryRetrySuccess() *Message
func NewErrorValidationRecoveryStateFailure ¶
func NewErrorValidationRecoveryStateFailure() *Message
func NewErrorValidationRecoveryTokenInvalidOrAlreadyUsed ¶
func NewErrorValidationRecoveryTokenInvalidOrAlreadyUsed() *Message
func NewErrorValidationRegistrationNoStrategyFound ¶
func NewErrorValidationRegistrationNoStrategyFound() *Message
func NewErrorValidationSettingsNoStrategyFound ¶
func NewErrorValidationSettingsNoStrategyFound() *Message
func NewErrorValidationTOTPVerifierWrong ¶
func NewErrorValidationTOTPVerifierWrong() *Message
func NewErrorValidationVerificationNoStrategyFound ¶
func NewErrorValidationVerificationNoStrategyFound() *Message
func NewErrorValidationVerificationRetrySuccess ¶
func NewErrorValidationVerificationRetrySuccess() *Message
func NewErrorValidationVerificationStateFailure ¶
func NewErrorValidationVerificationStateFailure() *Message
func NewErrorValidationVerificationTokenInvalidOrAlreadyUsed ¶
func NewErrorValidationVerificationTokenInvalidOrAlreadyUsed() *Message
func NewInfoLogin ¶
func NewInfoLogin() *Message
func NewInfoLoginLookup ¶
func NewInfoLoginLookup() *Message
func NewInfoLoginLookupLabel ¶
func NewInfoLoginLookupLabel() *Message
func NewInfoLoginMFA ¶
func NewInfoLoginMFA() *Message
func NewInfoLoginReAuth ¶
func NewInfoLoginReAuth() *Message
func NewInfoLoginTOTP ¶
func NewInfoLoginTOTP() *Message
func NewInfoLoginTOTPLabel ¶
func NewInfoLoginTOTPLabel() *Message
func NewInfoLoginVerify ¶
func NewInfoLoginVerify() *Message
func NewInfoLoginWith ¶
func NewInfoNodeInputPassword ¶
func NewInfoNodeInputPassword() *Message
func NewInfoNodeLabelID ¶
func NewInfoNodeLabelID() *Message
func NewInfoNodeLabelSave ¶
func NewInfoNodeLabelSave() *Message
func NewInfoNodeLabelSubmit ¶
func NewInfoNodeLabelSubmit() *Message
func NewInfoNodeLabelVerifyOTP ¶
func NewInfoNodeLabelVerifyOTP() *Message
func NewInfoRegistration ¶
func NewInfoRegistration() *Message
func NewInfoRegistrationContinue ¶
func NewInfoRegistrationContinue() *Message
func NewInfoRegistrationWith ¶
func NewInfoSelfServiceLoginWebAuthn ¶
func NewInfoSelfServiceLoginWebAuthn() *Message
func NewInfoSelfServiceRegisterWebAuthn ¶
func NewInfoSelfServiceRegisterWebAuthn() *Message
func NewInfoSelfServiceRegisterWebAuthnDisplayName ¶
func NewInfoSelfServiceRegisterWebAuthnDisplayName() *Message
func NewInfoSelfServiceSettingsDisableLookup ¶
func NewInfoSelfServiceSettingsDisableLookup() *Message
func NewInfoSelfServiceSettingsLookupConfirm ¶
func NewInfoSelfServiceSettingsLookupConfirm() *Message
func NewInfoSelfServiceSettingsLookupSecretsLabel ¶
func NewInfoSelfServiceSettingsLookupSecretsLabel() *Message
func NewInfoSelfServiceSettingsRegenerateLookup ¶
func NewInfoSelfServiceSettingsRegenerateLookup() *Message
func NewInfoSelfServiceSettingsRevealLookup ¶
func NewInfoSelfServiceSettingsRevealLookup() *Message
func NewInfoSelfServiceSettingsTOTPQRCode ¶
func NewInfoSelfServiceSettingsTOTPQRCode() *Message
func NewInfoSelfServiceSettingsTOTPSecretLabel ¶
func NewInfoSelfServiceSettingsTOTPSecretLabel() *Message
func NewInfoSelfServiceSettingsUpdateSuccess ¶
func NewInfoSelfServiceSettingsUpdateSuccess() *Message
func NewInfoSelfServiceSettingsUpdateUnlinkTOTP ¶
func NewInfoSelfServiceSettingsUpdateUnlinkTOTP() *Message
func NewInfoSelfServiceVerificationSuccessful ¶
func NewInfoSelfServiceVerificationSuccessful() *Message
func NewRecoveryEmailSent ¶
func NewRecoveryEmailSent() *Message
func NewRecoverySuccessful ¶
func NewVerificationEmailSent ¶
func NewVerificationEmailSent() *Message
Click to show internal directories.
Click to hide internal directories.