text

package
v0.8.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 (
	ErrorSystem ID = 5000000 + iota
	ErrorSystemGeneric
)
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 (
	InfoNodeLabel              ID = 1070000 + iota // 1070000
	InfoNodeLabelInputPassword                     // 1070001
	InfoNodeLabelGenerated                         // 1070002
	InfoNodeLabelSave                              // 1070003
	InfoNodeLabelID                                // 1070004
	InfoNodeLabelSubmit                            // 1070005
	InfoNodeLabelVerifyOTP                         // 1070006
)
const (
	InfoSelfServiceRecovery           ID = 1060000 + iota // 1060000
	InfoSelfServiceRecoverySuccessful                     // 1060001
	InfoSelfServiceRecoveryEmailSent                      // 1060002
)
const (
	ErrorValidationRecovery                          ID = 4060000 + iota // 4060000
	ErrorValidationRecoveryRetrySuccess                                  // 4060001
	ErrorValidationRecoveryStateFailure                                  // 4060002
	ErrorValidationRecoveryMissingRecoveryToken                          // 4060003
	ErrorValidationRecoveryTokenInvalidOrAlreadyUsed                     // 4060004
	ErrorValidationRecoveryFlowExpired                                   // 4060005
)
const (
	InfoSelfServiceRegistrationRoot ID = 1040000 + iota // 1040000
	InfoSelfServiceRegistration                         // 1040001
	InfoSelfServiceRegistrationWith                     // 1040002
	InfoRegistrationContinue                            // 1040003
)
const (
	ErrorValidationRegistration ID = 4040000 + iota
	ErrorValidationRegistrationFlowExpired
)
const (
	InfoSelfServiceSettings ID = 1050000 + iota
	InfoSelfServiceSettingsUpdateSuccess
	InfoSelfServiceSettingsUpdateLinkOidc
	InfoSelfServiceSettingsUpdateUnlinkOidc
	InfoSelfServiceSettingsUpdateUnlinkTOTP
	InfoSelfServiceSettingsTOTPQRCode
	InfoSelfServiceSettingsTOTPSecret
	InfoSelfServiceSettingsRevealLookup
	InfoSelfServiceSettingsRegenerateLookup
	InfoSelfServiceSettingsLookupSecret
	InfoSelfServiceSettingsLookupSecretLabel
	InfoSelfServiceSettingsLookupConfirm
	InfoSelfServiceSettingsRegisterWebAuthn
	InfoSelfServiceSettingsRegisterWebAuthnDisplayName
	InfoSelfServiceSettingsLookupSecretUsed
	InfoSelfServiceSettingsLookupSecretList
	InfoSelfServiceSettingsDisableLookup
)
const (
	ErrorValidationSettings ID = 4050000 + iota
	ErrorValidationSettingsFlowExpired
)
const (
	ErrorValidation ID = 4000000 + iota
	ErrorValidationGeneric
	ErrorValidationRequired
	ErrorValidationMinLength
	ErrorValidationInvalidFormat
	ErrorValidationPasswordPolicyViolation
	ErrorValidationInvalidCredentials
	ErrorValidationDuplicateCredentials
	ErrorValidationTOTPVerifierWrong
	ErrorValidationIdentifierMissing
	ErrorValidationAddressNotVerified
	ErrorValidationNoTOTPDevice
	ErrorValidationLookupAlreadyUsed
	ErrorValidationNoWebAuthnDevice
	ErrorValidationNoLookup
)
const (
	InfoSelfServiceVerification           ID = 1070000 + iota // 1070000
	InfoSelfServiceVerificationEmailSent                      // 1070001
	InfoSelfServiceVerificationSuccessful                     // 1060002
)
const (
	ErrorValidationVerification                          ID = 4070000 + iota // 4070000
	ErrorValidationVerificationTokenInvalidOrAlreadyUsed                     // 4070001
	ErrorValidationVerificationRetrySuccess                                  // 4070002
	ErrorValidationVerificationStateFailure                                  // 4070003
	ErrorValidationVerificationMissingVerificationToken                      // 4070004
	ErrorValidationVerificationFlowExpired                                   // 4070005
)
const (
	InfoSelfServiceLogout ID = 1020000 + iota
)
const (
	InfoSelfServiceMFA ID = 1030000 + iota
)

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 NewErrorSystemGeneric(reason string) *Message

func NewErrorValidationAddressNotVerified

func NewErrorValidationAddressNotVerified() *Message

func NewErrorValidationDuplicateCredentials

func NewErrorValidationDuplicateCredentials() *Message

func NewErrorValidationIdentifierMissing

func NewErrorValidationIdentifierMissing() *Message

func NewErrorValidationInvalidCredentials

func NewErrorValidationInvalidCredentials() *Message

func NewErrorValidationInvalidFormat

func NewErrorValidationInvalidFormat(format, value string) *Message

func NewErrorValidationLoginFlowExpired

func NewErrorValidationLoginFlowExpired(ago time.Duration) *Message

func NewErrorValidationLoginNoStrategyFound

func NewErrorValidationLoginNoStrategyFound() *Message

func NewErrorValidationLookupAlreadyUsed

func NewErrorValidationLookupAlreadyUsed() *Message

func NewErrorValidationLookupInvalid

func NewErrorValidationLookupInvalid() *Message

func NewErrorValidationMinLength

func NewErrorValidationMinLength(expected, actual int) *Message

func NewErrorValidationNoLookup

func NewErrorValidationNoLookup() *Message

func NewErrorValidationNoTOTPDevice

func NewErrorValidationNoTOTPDevice() *Message

func NewErrorValidationNoWebAuthnDevice

func NewErrorValidationNoWebAuthnDevice() *Message

func NewErrorValidationPasswordPolicyViolation

func NewErrorValidationPasswordPolicyViolation(reason string) *Message

func NewErrorValidationRecoveryFlowExpired

func NewErrorValidationRecoveryFlowExpired(ago time.Duration) *Message

func NewErrorValidationRecoveryNoStrategyFound

func NewErrorValidationRecoveryNoStrategyFound() *Message

func NewErrorValidationRecoveryRetrySuccess

func NewErrorValidationRecoveryRetrySuccess() *Message

func NewErrorValidationRecoveryStateFailure

func NewErrorValidationRecoveryStateFailure() *Message

func NewErrorValidationRecoveryTokenInvalidOrAlreadyUsed

func NewErrorValidationRecoveryTokenInvalidOrAlreadyUsed() *Message

func NewErrorValidationRegistrationFlowExpired

func NewErrorValidationRegistrationFlowExpired(ago time.Duration) *Message

func NewErrorValidationRegistrationNoStrategyFound

func NewErrorValidationRegistrationNoStrategyFound() *Message

func NewErrorValidationSettingsFlowExpired

func NewErrorValidationSettingsFlowExpired(ago time.Duration) *Message

func NewErrorValidationSettingsNoStrategyFound

func NewErrorValidationSettingsNoStrategyFound() *Message

func NewErrorValidationTOTPVerifierWrong

func NewErrorValidationTOTPVerifierWrong() *Message

func NewErrorValidationVerificationFlowExpired

func NewErrorValidationVerificationFlowExpired(ago time.Duration) *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 NewInfoLoginWith(provider string) *Message

func NewInfoNodeInputPassword

func NewInfoNodeInputPassword() *Message

func NewInfoNodeLabelGenerated

func NewInfoNodeLabelGenerated(title string) *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 NewInfoRegistrationWith(provider string) *Message

func NewInfoSelfServiceLoginWebAuthn

func NewInfoSelfServiceLoginWebAuthn() *Message

func NewInfoSelfServiceRegisterWebAuthn

func NewInfoSelfServiceRegisterWebAuthn() *Message

func NewInfoSelfServiceRegisterWebAuthnDisplayName

func NewInfoSelfServiceRegisterWebAuthnDisplayName() *Message

func NewInfoSelfServiceRemoveWebAuthn

func NewInfoSelfServiceRemoveWebAuthn(name string, createdAt time.Time) *Message

func NewInfoSelfServiceSettingsDisableLookup

func NewInfoSelfServiceSettingsDisableLookup() *Message

func NewInfoSelfServiceSettingsLookupConfirm

func NewInfoSelfServiceSettingsLookupConfirm() *Message

func NewInfoSelfServiceSettingsLookupSecret

func NewInfoSelfServiceSettingsLookupSecret(secret string) *Message

func NewInfoSelfServiceSettingsLookupSecretList

func NewInfoSelfServiceSettingsLookupSecretList(secrets []string, raw interface{}) *Message

func NewInfoSelfServiceSettingsLookupSecretUsed

func NewInfoSelfServiceSettingsLookupSecretUsed(usedAt time.Time) *Message

func NewInfoSelfServiceSettingsLookupSecretsLabel

func NewInfoSelfServiceSettingsLookupSecretsLabel() *Message

func NewInfoSelfServiceSettingsRegenerateLookup

func NewInfoSelfServiceSettingsRegenerateLookup() *Message

func NewInfoSelfServiceSettingsRevealLookup

func NewInfoSelfServiceSettingsRevealLookup() *Message

func NewInfoSelfServiceSettingsTOTPQRCode

func NewInfoSelfServiceSettingsTOTPQRCode() *Message

func NewInfoSelfServiceSettingsTOTPSecret

func NewInfoSelfServiceSettingsTOTPSecret(secret string) *Message

func NewInfoSelfServiceSettingsTOTPSecretLabel

func NewInfoSelfServiceSettingsTOTPSecretLabel() *Message

func NewInfoSelfServiceSettingsUpdateLinkOIDC

func NewInfoSelfServiceSettingsUpdateLinkOIDC(provider string) *Message

func NewInfoSelfServiceSettingsUpdateSuccess

func NewInfoSelfServiceSettingsUpdateSuccess() *Message

func NewInfoSelfServiceSettingsUpdateUnlinkOIDC

func NewInfoSelfServiceSettingsUpdateUnlinkOIDC(provider string) *Message

func NewInfoSelfServiceSettingsUpdateUnlinkTOTP

func NewInfoSelfServiceSettingsUpdateUnlinkTOTP() *Message

func NewInfoSelfServiceVerificationSuccessful

func NewInfoSelfServiceVerificationSuccessful() *Message

func NewRecoveryEmailSent

func NewRecoveryEmailSent() *Message

func NewRecoverySuccessful

func NewRecoverySuccessful(privilegedSessionExpiresAt time.Time) *Message

func NewValidationErrorGeneric

func NewValidationErrorGeneric(reason string) *Message

func NewValidationErrorRequired

func NewValidationErrorRequired(missing string) *Message

func NewVerificationEmailSent

func NewVerificationEmailSent() *Message

func (*Message) Scan

func (m *Message) Scan(value interface{}) error

func (Message) Value

func (m Message) Value() (driver.Value, error)

type Messages

type Messages []Message

swagger:model uiTexts

func (*Messages) Add

func (h *Messages) Add(m *Message) Messages

func (*Messages) Clear

func (h *Messages) Clear() Messages

func (Messages) MarshalJSON

func (h Messages) MarshalJSON() ([]byte, error)

func (*Messages) Scan

func (h *Messages) Scan(value interface{}) error

func (*Messages) Set

func (h *Messages) Set(m *Message) Messages

func (Messages) Value

func (h Messages) Value() (driver.Value, error)

type Type

type Type string

swagger:model uiTextType

const (
	Info  Type = "info"
	Error Type = "error"
)

Jump to

Keyboard shortcuts

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