nodes

package
v0.0.0-...-ee57881 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UseIdentityLoginIDModeCreate = "create"
	UseIdentityLoginIDModeSelect = "select"
	UseIdentityLoginIDModeUpdate = "update"
)

Variables

View Source
var ErrNoPublicSignup = apierrors.Forbidden.WithReason("NoPublicSignup").New("public signup is disabled")

Functions

This section is empty.

Types

type EdgeAuthenticationBegin

type EdgeAuthenticationBegin struct {
	Stage authn.AuthenticationStage
}

func (*EdgeAuthenticationBegin) Instantiate

func (e *EdgeAuthenticationBegin) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, input interface{}) (interaction.Node, error)

type EdgeAuthenticationEnd

type EdgeAuthenticationEnd struct {
	Stage                 authn.AuthenticationStage
	AuthenticationType    authn.AuthenticationType
	VerifiedAuthenticator *authenticator.Info
	RecoveryCode          *mfa.RecoveryCode
}

func (*EdgeAuthenticationEnd) Instantiate

func (e *EdgeAuthenticationEnd) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, input interface{}) (interaction.Node, error)
type EdgeAuthenticationLoginLink struct {
	Stage         authn.AuthenticationStage
	Authenticator *authenticator.Info
}

func (*EdgeAuthenticationLoginLink) Instantiate

func (e *EdgeAuthenticationLoginLink) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeAuthenticationLoginLinkTrigger

type EdgeAuthenticationLoginLinkTrigger struct {
	Stage          authn.AuthenticationStage
	Authenticators []*authenticator.Info
}

func (*EdgeAuthenticationLoginLinkTrigger) AuthenticatorType

func (*EdgeAuthenticationLoginLinkTrigger) GetTarget

func (e *EdgeAuthenticationLoginLinkTrigger) GetTarget(idx int) string

func (*EdgeAuthenticationLoginLinkTrigger) Instantiate

func (e *EdgeAuthenticationLoginLinkTrigger) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

func (*EdgeAuthenticationLoginLinkTrigger) IsDefaultAuthenticator

func (e *EdgeAuthenticationLoginLinkTrigger) IsDefaultAuthenticator() bool

type EdgeAuthenticationOOB

type EdgeAuthenticationOOB struct {
	Stage         authn.AuthenticationStage
	Authenticator *authenticator.Info
	Secret        string
}

func (*EdgeAuthenticationOOB) Instantiate

func (e *EdgeAuthenticationOOB) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeAuthenticationOOBTrigger

type EdgeAuthenticationOOBTrigger struct {
	Stage                authn.AuthenticationStage
	OOBAuthenticatorType model.AuthenticatorType
	Authenticators       []*authenticator.Info
}

func (*EdgeAuthenticationOOBTrigger) AuthenticatorType

func (e *EdgeAuthenticationOOBTrigger) AuthenticatorType() model.AuthenticatorType

func (*EdgeAuthenticationOOBTrigger) GetOOBOTPChannel

func (*EdgeAuthenticationOOBTrigger) GetOOBOTPTarget

func (e *EdgeAuthenticationOOBTrigger) GetOOBOTPTarget(idx int) string

func (*EdgeAuthenticationOOBTrigger) Instantiate

func (e *EdgeAuthenticationOOBTrigger) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

func (*EdgeAuthenticationOOBTrigger) IsDefaultAuthenticator

func (e *EdgeAuthenticationOOBTrigger) IsDefaultAuthenticator() bool

type EdgeAuthenticationPasskey

type EdgeAuthenticationPasskey struct {
	Stage          authn.AuthenticationStage
	Authenticators []*authenticator.Info
}

func (*EdgeAuthenticationPasskey) AuthenticatorType

func (e *EdgeAuthenticationPasskey) AuthenticatorType() model.AuthenticatorType

func (*EdgeAuthenticationPasskey) Instantiate

func (e *EdgeAuthenticationPasskey) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

func (*EdgeAuthenticationPasskey) IsDefaultAuthenticator

func (e *EdgeAuthenticationPasskey) IsDefaultAuthenticator() bool

type EdgeAuthenticationPassword

type EdgeAuthenticationPassword struct {
	Stage          authn.AuthenticationStage
	Authenticators []*authenticator.Info
}

func (*EdgeAuthenticationPassword) AuthenticatorType

func (e *EdgeAuthenticationPassword) AuthenticatorType() model.AuthenticatorType

func (*EdgeAuthenticationPassword) Instantiate

func (e *EdgeAuthenticationPassword) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

func (*EdgeAuthenticationPassword) IsDefaultAuthenticator

func (e *EdgeAuthenticationPassword) IsDefaultAuthenticator() bool

type EdgeAuthenticationTOTP

type EdgeAuthenticationTOTP struct {
	Stage          authn.AuthenticationStage
	Authenticators []*authenticator.Info
}

func (*EdgeAuthenticationTOTP) AuthenticatorType

func (e *EdgeAuthenticationTOTP) AuthenticatorType() model.AuthenticatorType

func (*EdgeAuthenticationTOTP) Instantiate

func (e *EdgeAuthenticationTOTP) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

func (*EdgeAuthenticationTOTP) IsDefaultAuthenticator

func (e *EdgeAuthenticationTOTP) IsDefaultAuthenticator() bool

type EdgeAuthenticationWhatsapp

type EdgeAuthenticationWhatsapp struct {
	Stage         authn.AuthenticationStage
	Authenticator *authenticator.Info
}

func (*EdgeAuthenticationWhatsapp) Instantiate

func (e *EdgeAuthenticationWhatsapp) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeAuthenticationWhatsappTrigger

type EdgeAuthenticationWhatsappTrigger struct {
	Stage          authn.AuthenticationStage
	Authenticators []*authenticator.Info
}

func (*EdgeAuthenticationWhatsappTrigger) AuthenticatorType

func (*EdgeAuthenticationWhatsappTrigger) GetPhone

func (e *EdgeAuthenticationWhatsappTrigger) GetPhone(idx int) string

func (*EdgeAuthenticationWhatsappTrigger) Instantiate

func (e *EdgeAuthenticationWhatsappTrigger) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

func (*EdgeAuthenticationWhatsappTrigger) IsDefaultAuthenticator

func (e *EdgeAuthenticationWhatsappTrigger) IsDefaultAuthenticator() bool

type EdgeChangePassword

type EdgeChangePassword struct {
	Stage  authn.AuthenticationStage
	Reason *interaction.AuthenticatorUpdateReason
}

func (*EdgeChangePassword) Instantiate

func (e *EdgeChangePassword) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (node interaction.Node, err error)

type EdgeChangePasswordBegin

type EdgeChangePasswordBegin struct {
	Force bool
	Stage authn.AuthenticationStage
}

func (*EdgeChangePasswordBegin) Instantiate

func (e *EdgeChangePasswordBegin) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeCheckIdentityConflict

type EdgeCheckIdentityConflict struct {
	NewIdentity *identity.Info
}

func (*EdgeCheckIdentityConflict) Instantiate

func (e *EdgeCheckIdentityConflict) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeConfirmTerminateOtherSessionsBegin

type EdgeConfirmTerminateOtherSessionsBegin struct {
}

func (*EdgeConfirmTerminateOtherSessionsBegin) Instantiate

func (e *EdgeConfirmTerminateOtherSessionsBegin) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeConfirmTerminateOtherSessionsEnd

type EdgeConfirmTerminateOtherSessionsEnd struct {
}

func (*EdgeConfirmTerminateOtherSessionsEnd) Instantiate

func (e *EdgeConfirmTerminateOtherSessionsEnd) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeConsumeRecoveryCode

type EdgeConsumeRecoveryCode struct{}

func (*EdgeConsumeRecoveryCode) Instantiate

func (e *EdgeConsumeRecoveryCode) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeCreateAuthenticatorBegin

type EdgeCreateAuthenticatorBegin struct {
	Stage             authn.AuthenticationStage
	AuthenticatorType *model.AuthenticatorType
}

func (*EdgeCreateAuthenticatorBegin) Instantiate

func (e *EdgeCreateAuthenticatorBegin) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, input interface{}) (interaction.Node, error)

type EdgeCreateAuthenticatorEnd

type EdgeCreateAuthenticatorEnd struct {
	Stage          authn.AuthenticationStage
	Authenticators []*authenticator.Info
}

func (*EdgeCreateAuthenticatorEnd) Instantiate

func (e *EdgeCreateAuthenticatorEnd) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, input interface{}) (interaction.Node, error)

type EdgeCreateAuthenticatorLoginLinkOTP

type EdgeCreateAuthenticatorLoginLinkOTP struct {
	Stage         authn.AuthenticationStage
	Authenticator *authenticator.Info
}

func (*EdgeCreateAuthenticatorLoginLinkOTP) Instantiate

func (e *EdgeCreateAuthenticatorLoginLinkOTP) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeCreateAuthenticatorLoginLinkOTPSetup

type EdgeCreateAuthenticatorLoginLinkOTPSetup struct {
	NewAuthenticatorID string
	Stage              authn.AuthenticationStage
	IsDefault          bool
}

func (*EdgeCreateAuthenticatorLoginLinkOTPSetup) AuthenticatorType

func (*EdgeCreateAuthenticatorLoginLinkOTPSetup) Instantiate

func (e *EdgeCreateAuthenticatorLoginLinkOTPSetup) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

func (*EdgeCreateAuthenticatorLoginLinkOTPSetup) IsDefaultAuthenticator

func (e *EdgeCreateAuthenticatorLoginLinkOTPSetup) IsDefaultAuthenticator() bool

type EdgeCreateAuthenticatorOOB

type EdgeCreateAuthenticatorOOB struct {
	Stage         authn.AuthenticationStage
	Authenticator *authenticator.Info
}

func (*EdgeCreateAuthenticatorOOB) Instantiate

func (e *EdgeCreateAuthenticatorOOB) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeCreateAuthenticatorOOBSetup

type EdgeCreateAuthenticatorOOBSetup struct {
	NewAuthenticatorID string
	Stage              authn.AuthenticationStage
	IsDefault          bool

	OOBAuthenticatorType model.AuthenticatorType
}

func (*EdgeCreateAuthenticatorOOBSetup) AuthenticatorType

func (*EdgeCreateAuthenticatorOOBSetup) Instantiate

func (e *EdgeCreateAuthenticatorOOBSetup) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

nolint: gocognit

func (*EdgeCreateAuthenticatorOOBSetup) IsDefaultAuthenticator

func (e *EdgeCreateAuthenticatorOOBSetup) IsDefaultAuthenticator() bool

type EdgeCreateAuthenticatorPasskey

type EdgeCreateAuthenticatorPasskey struct {
	NewAuthenticatorID string
	Stage              authn.AuthenticationStage
	IsDefault          bool
}

func (*EdgeCreateAuthenticatorPasskey) AuthenticatorType

func (*EdgeCreateAuthenticatorPasskey) Instantiate

func (e *EdgeCreateAuthenticatorPasskey) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

func (*EdgeCreateAuthenticatorPasskey) IsDefaultAuthenticator

func (e *EdgeCreateAuthenticatorPasskey) IsDefaultAuthenticator() bool

type EdgeCreateAuthenticatorPassword

type EdgeCreateAuthenticatorPassword struct {
	NewAuthenticatorID string
	Stage              authn.AuthenticationStage
	IsDefault          bool
}

func (*EdgeCreateAuthenticatorPassword) AuthenticatorType

func (*EdgeCreateAuthenticatorPassword) Instantiate

func (e *EdgeCreateAuthenticatorPassword) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

func (*EdgeCreateAuthenticatorPassword) IsDefaultAuthenticator

func (e *EdgeCreateAuthenticatorPassword) IsDefaultAuthenticator() bool

type EdgeCreateAuthenticatorTOTP

type EdgeCreateAuthenticatorTOTP struct {
	Stage         authn.AuthenticationStage
	Authenticator *authenticator.Info
}

func (*EdgeCreateAuthenticatorTOTP) Instantiate

func (e *EdgeCreateAuthenticatorTOTP) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeCreateAuthenticatorTOTPSetup

type EdgeCreateAuthenticatorTOTPSetup struct {
	NewAuthenticatorID string
	Stage              authn.AuthenticationStage
	IsDefault          bool
}

func (*EdgeCreateAuthenticatorTOTPSetup) AuthenticatorType

func (*EdgeCreateAuthenticatorTOTPSetup) Instantiate

func (e *EdgeCreateAuthenticatorTOTPSetup) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

func (*EdgeCreateAuthenticatorTOTPSetup) IsDefaultAuthenticator

func (e *EdgeCreateAuthenticatorTOTPSetup) IsDefaultAuthenticator() bool

type EdgeCreateAuthenticatorWhatsappOTP

type EdgeCreateAuthenticatorWhatsappOTP struct {
	Stage         authn.AuthenticationStage
	Authenticator *authenticator.Info
}

func (*EdgeCreateAuthenticatorWhatsappOTP) Instantiate

func (e *EdgeCreateAuthenticatorWhatsappOTP) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeCreateAuthenticatorWhatsappOTPSetup

type EdgeCreateAuthenticatorWhatsappOTPSetup struct {
	NewAuthenticatorID string
	Stage              authn.AuthenticationStage
	IsDefault          bool
}

func (*EdgeCreateAuthenticatorWhatsappOTPSetup) AuthenticatorType

func (*EdgeCreateAuthenticatorWhatsappOTPSetup) Instantiate

func (e *EdgeCreateAuthenticatorWhatsappOTPSetup) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

func (*EdgeCreateAuthenticatorWhatsappOTPSetup) IsDefaultAuthenticator

func (e *EdgeCreateAuthenticatorWhatsappOTPSetup) IsDefaultAuthenticator() bool

type EdgeCreateIdentityBegin

type EdgeCreateIdentityBegin struct{}

func (*EdgeCreateIdentityBegin) Instantiate

func (e *EdgeCreateIdentityBegin) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, input interface{}) (interaction.Node, error)

type EdgeCreateIdentityEnd

type EdgeCreateIdentityEnd struct {
	IdentitySpec *identity.Spec
}

func (*EdgeCreateIdentityEnd) Instantiate

func (e *EdgeCreateIdentityEnd) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeDoCreateAuthenticator

type EdgeDoCreateAuthenticator struct {
	Stage          authn.AuthenticationStage
	Authenticators []*authenticator.Info
}

func (*EdgeDoCreateAuthenticator) Instantiate

func (e *EdgeDoCreateAuthenticator) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeDoCreateIdentity

type EdgeDoCreateIdentity struct {
	Identity   *identity.Info
	IsAddition bool
}

func (*EdgeDoCreateIdentity) Instantiate

func (e *EdgeDoCreateIdentity) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeDoCreateUser

type EdgeDoCreateUser struct {
}

func (*EdgeDoCreateUser) Instantiate

func (e *EdgeDoCreateUser) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeDoEnsureSession

type EdgeDoEnsureSession struct {
	CreateReason session.CreateReason
	Mode         EnsureSessionMode
}

func (*EdgeDoEnsureSession) Instantiate

func (e *EdgeDoEnsureSession) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, input interface{}) (interaction.Node, error)

type EdgeDoGenerateRecoveryCode

type EdgeDoGenerateRecoveryCode struct {
	RecoveryCodes []string
}

func (*EdgeDoGenerateRecoveryCode) Instantiate

func (e *EdgeDoGenerateRecoveryCode) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeDoRemoveAuthenticator

type EdgeDoRemoveAuthenticator struct {
	Authenticator        *authenticator.Info
	BypassMFARequirement bool
}

func (*EdgeDoRemoveAuthenticator) Instantiate

func (e *EdgeDoRemoveAuthenticator) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeDoRemoveIdentity

type EdgeDoRemoveIdentity struct {
	Identity *identity.Info
}

func (*EdgeDoRemoveIdentity) Instantiate

func (e *EdgeDoRemoveIdentity) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeDoResetLockoutAttempts

type EdgeDoResetLockoutAttempts struct {
}

func (*EdgeDoResetLockoutAttempts) Instantiate

func (e *EdgeDoResetLockoutAttempts) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeDoUpdateAuthenticator

type EdgeDoUpdateAuthenticator struct {
	Stage                     authn.AuthenticationStage
	AuthenticatorBeforeUpdate *authenticator.Info
	AuthenticatorAfterUpdate  *authenticator.Info
}

func (*EdgeDoUpdateAuthenticator) Instantiate

func (e *EdgeDoUpdateAuthenticator) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeDoUpdateIdentity

type EdgeDoUpdateIdentity struct {
	IdentityBeforeUpdate *identity.Info
	IdentityAfterUpdate  *identity.Info
}

func (*EdgeDoUpdateIdentity) Instantiate

func (e *EdgeDoUpdateIdentity) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeDoUseAuthenticator

type EdgeDoUseAuthenticator struct {
	Stage         authn.AuthenticationStage
	Authenticator *authenticator.Info
}

func (*EdgeDoUseAuthenticator) Instantiate

func (e *EdgeDoUseAuthenticator) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeDoUseIdentity

type EdgeDoUseIdentity struct {
	Identity   *identity.Info
	UserIDHint string
}

func (*EdgeDoUseIdentity) Instantiate

func (e *EdgeDoUseIdentity) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeDoUseUser

type EdgeDoUseUser struct {
	UseUserID string
}

func (*EdgeDoUseUser) Instantiate

func (e *EdgeDoUseUser) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, input interface{}) (interaction.Node, error)

type EdgeDoVerifyIdentity

type EdgeDoVerifyIdentity struct {
	Identity         *identity.Info
	NewVerifiedClaim *verification.Claim
	RequestedByUser  bool
}

func (*EdgeDoVerifyIdentity) Instantiate

func (e *EdgeDoVerifyIdentity) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeEnsurePasswordChange

type EdgeEnsurePasswordChange struct {
	Stage authn.AuthenticationStage
}

func (*EdgeEnsurePasswordChange) Instantiate

func (e *EdgeEnsurePasswordChange) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeEnsureRemoveAnonymousIdentity

type EdgeEnsureRemoveAnonymousIdentity struct{}

func (*EdgeEnsureRemoveAnonymousIdentity) Instantiate

func (e *EdgeEnsureRemoveAnonymousIdentity) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, input interface{}) (interaction.Node, error)

type EdgeEnsureVerificationBegin

type EdgeEnsureVerificationBegin struct {
	Identity        *identity.Info
	RequestedByUser bool
}

func (*EdgeEnsureVerificationBegin) Instantiate

func (e *EdgeEnsureVerificationBegin) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeEnsureVerificationEnd

type EdgeEnsureVerificationEnd struct {
	Identity *identity.Info
}

func (*EdgeEnsureVerificationEnd) Instantiate

func (e *EdgeEnsureVerificationEnd) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeForgotPasswordBegin

type EdgeForgotPasswordBegin struct {
	IdentityInfo *identity.Info `json:"identity_info"`
}

func (*EdgeForgotPasswordBegin) Instantiate

func (e *EdgeForgotPasswordBegin) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeForgotPasswordSelectLoginID

type EdgeForgotPasswordSelectLoginID struct {
	Configs      []config.LoginIDKeyConfig `json:"-"`
	RedirectURI  string                    `json:"-"`
	IdentityInfo *identity.Info            `json:"identity_info"`
}

func (*EdgeForgotPasswordSelectLoginID) GetIdentityCandidates

func (e *EdgeForgotPasswordSelectLoginID) GetIdentityCandidates() []identity.Candidate

GetIdentityCandidates implements IdentityCandidatesGetter.

func (*EdgeForgotPasswordSelectLoginID) Instantiate

func (e *EdgeForgotPasswordSelectLoginID) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeGenerateRecoveryCode

type EdgeGenerateRecoveryCode struct {
	IsRegenerate bool
}

func (*EdgeGenerateRecoveryCode) Instantiate

func (e *EdgeGenerateRecoveryCode) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, input interface{}) (interaction.Node, error)

type EdgeGenerateRecoveryCodeEnd

type EdgeGenerateRecoveryCodeEnd struct {
	RecoveryCodes []string
}

func (*EdgeGenerateRecoveryCodeEnd) Instantiate

func (e *EdgeGenerateRecoveryCodeEnd) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeIncompatibleInput

type EdgeIncompatibleInput struct {
}

EdgeIncompatibleInput always return ErrIncompatibleInput when instantiating to ensure graph won't end at unexpected node

func (*EdgeIncompatibleInput) Instantiate

func (e *EdgeIncompatibleInput) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeOOBResendCode

type EdgeOOBResendCode struct {
	Stage            authn.AuthenticationStage
	IsAuthenticating bool
	Authenticator    *authenticator.Info
	OTPForm          otp.Form
}

func (*EdgeOOBResendCode) Instantiate

func (e *EdgeOOBResendCode) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgePromptCreatePasskey

type EdgePromptCreatePasskey struct{}

func (*EdgePromptCreatePasskey) Instantiate

func (e *EdgePromptCreatePasskey) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgePromptCreatePasskeyBegin

type EdgePromptCreatePasskeyBegin struct{}

func (*EdgePromptCreatePasskeyBegin) Instantiate

func (e *EdgePromptCreatePasskeyBegin) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, input interface{}) (interaction.Node, error)

type EdgeReauthenticationBegin

type EdgeReauthenticationBegin struct{}

func (*EdgeReauthenticationBegin) Instantiate

func (e *EdgeReauthenticationBegin) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, input interface{}) (interaction.Node, error)

type EdgeRemoveAuthenticator

type EdgeRemoveAuthenticator struct{}

func (*EdgeRemoveAuthenticator) Instantiate

func (e *EdgeRemoveAuthenticator) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeRemoveIdentity

type EdgeRemoveIdentity struct{}

func (*EdgeRemoveIdentity) Instantiate

func (e *EdgeRemoveIdentity) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeResetPassword

type EdgeResetPassword struct{}

func (*EdgeResetPassword) Instantiate

func (e *EdgeResetPassword) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeSelectIdentityBegin

type EdgeSelectIdentityBegin struct {
	IsAuthentication bool
}

func (*EdgeSelectIdentityBegin) Instantiate

func (e *EdgeSelectIdentityBegin) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeSelectIdentityEnd

type EdgeSelectIdentityEnd struct {
	IdentitySpec     *identity.Spec
	IsAuthentication bool
}

func (*EdgeSelectIdentityEnd) Instantiate

func (e *EdgeSelectIdentityEnd) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, input interface{}) (interaction.Node, error)

type EdgeSettingsActionEnd

type EdgeSettingsActionEnd struct{}

func (*EdgeSettingsActionEnd) Instantiate

func (e *EdgeSettingsActionEnd) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, input interface{}) (interaction.Node, error)

type EdgeTerminal

type EdgeTerminal struct{}

EdgeTerminal is used to indicate a terminal state of interaction; the interaction cannot further, and must be rewound to a previous step to continue.

func (*EdgeTerminal) Instantiate

func (e *EdgeTerminal) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeUpdateIdentityBegin

type EdgeUpdateIdentityBegin struct {
	IdentityID string
}

func (*EdgeUpdateIdentityBegin) Instantiate

func (e *EdgeUpdateIdentityBegin) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, input interface{}) (interaction.Node, error)

type EdgeUpdateIdentityEnd

type EdgeUpdateIdentityEnd struct {
	IdentitySpec *identity.Spec
}

func (*EdgeUpdateIdentityEnd) Instantiate

func (e *EdgeUpdateIdentityEnd) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeUseDeviceToken

type EdgeUseDeviceToken struct{}

func (*EdgeUseDeviceToken) Instantiate

func (e *EdgeUseDeviceToken) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeUseIdentityAnonymous

type EdgeUseIdentityAnonymous struct {
	IsAuthentication bool
}

func (*EdgeUseIdentityAnonymous) Instantiate

func (e *EdgeUseIdentityAnonymous) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

nolint:gocognit

type EdgeUseIdentityBiometric

type EdgeUseIdentityBiometric struct {
	IsAuthentication bool
	IsCreating       bool
}

func (*EdgeUseIdentityBiometric) Instantiate

func (e *EdgeUseIdentityBiometric) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeUseIdentityLoginID

type EdgeUseIdentityLoginID struct {
	IsAuthentication bool
	Mode             UseIdentityLoginIDMode
	Configs          []config.LoginIDKeyConfig
}

func (*EdgeUseIdentityLoginID) GetIdentityCandidates

func (e *EdgeUseIdentityLoginID) GetIdentityCandidates() []identity.Candidate

GetIdentityCandidates implements IdentityCandidatesGetter.

func (*EdgeUseIdentityLoginID) Instantiate

func (e *EdgeUseIdentityLoginID) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeUseIdentityOAuthProvider

type EdgeUseIdentityOAuthProvider struct {
	IsAuthentication bool
	IsCreating       bool
	Configs          []config.OAuthSSOProviderConfig
	FeatureConfig    *config.OAuthSSOProvidersFeatureConfig
}

func (*EdgeUseIdentityOAuthProvider) GetIdentityCandidates

func (e *EdgeUseIdentityOAuthProvider) GetIdentityCandidates() []identity.Candidate

func (*EdgeUseIdentityOAuthProvider) Instantiate

func (e *EdgeUseIdentityOAuthProvider) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeUseIdentityOAuthUserInfo

type EdgeUseIdentityOAuthUserInfo struct {
	IsAuthentication bool
	IsCreating       bool
	Config           config.OAuthSSOProviderConfig
	HashedNonce      string
	ErrorRedirectURI string
}

func (*EdgeUseIdentityOAuthUserInfo) Instantiate

func (e *EdgeUseIdentityOAuthUserInfo) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeUseIdentityPasskey

type EdgeUseIdentityPasskey struct {
	IsAuthentication bool
}

func (*EdgeUseIdentityPasskey) Instantiate

func (e *EdgeUseIdentityPasskey) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeUseIdentitySIWE

type EdgeUseIdentitySIWE struct {
	IsAuthentication bool
}

func (*EdgeUseIdentitySIWE) GetIdentityCandidates

func (e *EdgeUseIdentitySIWE) GetIdentityCandidates() []identity.Candidate

func (*EdgeUseIdentitySIWE) Instantiate

func (e *EdgeUseIdentitySIWE) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeValidateUser

type EdgeValidateUser struct {
}

func (*EdgeValidateUser) Instantiate

func (e *EdgeValidateUser) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeVerifyIdentity

type EdgeVerifyIdentity struct {
	Identity        *identity.Info
	RequestedByUser bool
}

func (*EdgeVerifyIdentity) Instantiate

func (e *EdgeVerifyIdentity) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeVerifyIdentityCheckCode

type EdgeVerifyIdentityCheckCode struct {
	Identity *identity.Info
}

func (*EdgeVerifyIdentityCheckCode) Instantiate

func (e *EdgeVerifyIdentityCheckCode) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeVerifyIdentityResendCode

type EdgeVerifyIdentityResendCode struct {
	Node *NodeVerifyIdentity
}

func (*EdgeVerifyIdentityResendCode) Instantiate

func (e *EdgeVerifyIdentityResendCode) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeVerifyIdentityViaWhatsapp

type EdgeVerifyIdentityViaWhatsapp struct {
	Identity        *identity.Info
	RequestedByUser bool
}

func (*EdgeVerifyIdentityViaWhatsapp) Instantiate

func (e *EdgeVerifyIdentityViaWhatsapp) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeVerifyIdentityViaWhatsappCheckCode

type EdgeVerifyIdentityViaWhatsappCheckCode struct {
	Identity *identity.Info `json:"identity"`
}

func (*EdgeVerifyIdentityViaWhatsappCheckCode) Instantiate

func (e *EdgeVerifyIdentityViaWhatsappCheckCode) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EdgeWhatsappOTPResendCode

type EdgeWhatsappOTPResendCode struct {
	Target         string
	OTPKindFactory otp.DeprecatedKindFactory
}

func (*EdgeWhatsappOTPResendCode) Instantiate

func (e *EdgeWhatsappOTPResendCode) Instantiate(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph, rawInput interface{}) (interaction.Node, error)

type EnsureSessionMode

type EnsureSessionMode string
const (
	EnsureSessionModeDefault        EnsureSessionMode = ""
	EnsureSessionModeCreate         EnsureSessionMode = "create"
	EnsureSessionModeUpdateOrCreate EnsureSessionMode = "update_or_create"
	EnsureSessionModeNoop           EnsureSessionMode = "noop"
)
type InputAuthenticationLoginLink interface {
	VerifyLoginLink()
}

type InputAuthenticationLoginLinkTrigger

type InputAuthenticationLoginLinkTrigger interface {
	GetLoginLinkAuthenticatorIndex() int
}

type InputAuthenticationOOB

type InputAuthenticationOOB interface {
	GetOOBOTP() string
}

type InputAuthenticationOOBTrigger

type InputAuthenticationOOBTrigger interface {
	GetOOBAuthenticatorType() string
	GetOOBAuthenticatorIndex() int
}

type InputAuthenticationPasskey

type InputAuthenticationPasskey interface {
	GetAssertionResponse() []byte
}

type InputAuthenticationPassword

type InputAuthenticationPassword interface {
	GetPassword() string
}

type InputAuthenticationStage

type InputAuthenticationStage interface {
	GetAuthenticationStage() authn.AuthenticationStage
}

type InputAuthenticationTOTP

type InputAuthenticationTOTP interface {
	GetTOTP() string
}

type InputAuthenticationWhatsapp

type InputAuthenticationWhatsapp interface {
	GetWhatsappOTP() string
}

type InputAuthenticationWhatsappTrigger

type InputAuthenticationWhatsappTrigger interface {
	GetWhatsappAuthenticatorIndex() int
}

type InputChangePassword

type InputChangePassword interface {
	GetAuthenticationStage() authn.AuthenticationStage
	GetOldPassword() string
	GetNewPassword() string
}

type InputConfirmTerminateOtherSessionsEnd

type InputConfirmTerminateOtherSessionsEnd interface {
	GetIsConfirmed() bool
}

type InputConsumeRecoveryCode

type InputConsumeRecoveryCode interface {
	GetRecoveryCode() string
}

type InputCreateAuthenticatorLoginLinkOTP

type InputCreateAuthenticatorLoginLinkOTP interface {
	VerifyLoginLink()
}

type InputCreateAuthenticatorLoginLinkOTPSetup

type InputCreateAuthenticatorLoginLinkOTPSetup interface {
	GetLoginLinkOTPTarget() string
}

type InputCreateAuthenticatorLoginLinkOTPSetupSelect

type InputCreateAuthenticatorLoginLinkOTPSetupSelect interface {
	SetupPrimaryAuthenticatorLoginLinkOTP()
}

type InputCreateAuthenticatorOOB

type InputCreateAuthenticatorOOB interface {
	GetOOBOTP() string
}

type InputCreateAuthenticatorOOBSetup

type InputCreateAuthenticatorOOBSetup interface {
	GetOOBChannel() model.AuthenticatorOOBChannel
	GetOOBTarget() string
}

type InputCreateAuthenticatorOOBSetupSelect

type InputCreateAuthenticatorOOBSetupSelect interface {
	SetupPrimaryAuthenticatorOOB()
}

type InputCreateAuthenticatorPasskey

type InputCreateAuthenticatorPasskey interface {
	GetAttestationResponse() []byte
}

type InputCreateAuthenticatorPassword

type InputCreateAuthenticatorPassword interface {
	GetPassword() string
}

type InputCreateAuthenticatorTOTP

type InputCreateAuthenticatorTOTP interface {
	GetTOTP() string
	GetTOTPDisplayName() string
}

type InputCreateAuthenticatorTOTPSetup

type InputCreateAuthenticatorTOTPSetup interface {
	SetupTOTP()
}

type InputCreateAuthenticatorWhatsappOTP

type InputCreateAuthenticatorWhatsappOTP interface {
	GetWhatsappOTP() string
}

type InputCreateAuthenticatorWhatsappOTPSetup

type InputCreateAuthenticatorWhatsappOTPSetup interface {
	GetWhatsappPhone() string
}

type InputCreateAuthenticatorWhatsappOTPSetupSelect

type InputCreateAuthenticatorWhatsappOTPSetupSelect interface {
	SetupPrimaryAuthenticatorWhatsappOTP()
}

type InputCreateDeviceToken

type InputCreateDeviceToken interface {
	CreateDeviceToken() bool
}

type InputGenerateRecoveryCodeEnd

type InputGenerateRecoveryCodeEnd interface {
	ViewedRecoveryCodes()
}

type InputOOBResendCode

type InputOOBResendCode interface {
	DoResend()
}

type InputPromptCreatePasskey

type InputPromptCreatePasskey interface {
	IsSkipped() bool
	GetAttestationResponse() []byte
}

type InputRemoveAuthenticator

type InputRemoveAuthenticator interface {
	GetAuthenticatorType() model.AuthenticatorType
	GetAuthenticatorID() string
}

type InputRemoveIdentity

type InputRemoveIdentity interface {
	GetIdentityType() model.IdentityType
	GetIdentityID() string
}

type InputResetPassword

type InputResetPassword interface {
	GetResetPasswordUserID() string
	GetNewPassword() string
	GeneratePassword() bool
	SendPassword() bool
	ChangeOnLogin() bool
}

type InputResetPasswordByCode

type InputResetPasswordByCode interface {
	GetCode() string
	GetNewPassword() string
}

type InputUseDeviceToken

type InputUseDeviceToken interface {
	GetDeviceToken() string
}

type InputUseIdentityAnonymous

type InputUseIdentityAnonymous interface {
	GetAnonymousRequestToken() string
	SignUpAnonymousUserWithoutKey() bool
	GetPromotionCode() string
}

type InputUseIdentityBiometric

type InputUseIdentityBiometric interface {
	GetBiometricRequestToken() string
}

type InputUseIdentityLoginID

type InputUseIdentityLoginID interface {
	GetLoginIDKey() string
	GetLoginID() string
}

type InputUseIdentityOAuthProvider

type InputUseIdentityOAuthProvider interface {
	GetProviderAlias() string
	GetErrorRedirectURI() string
	GetPrompt() []string
}

type InputUseIdentityOAuthUserInfo

type InputUseIdentityOAuthUserInfo interface {
	GetProviderAlias() string
	GetQuery() string
}

type InputUseIdentityPasskey

type InputUseIdentityPasskey interface {
	GetAssertionResponse() []byte
}

type InputUseIdentitySIWE

type InputUseIdentitySIWE interface {
	GetMessage() string
	GetSignature() string
}

type InputVerifyIdentity

type InputVerifyIdentity interface {
	SelectVerifyIdentityViaOOBOTP()
}

type InputVerifyIdentityCheckCode

type InputVerifyIdentityCheckCode interface {
	GetVerificationCode() string
}

type InputVerifyIdentityResendCode

type InputVerifyIdentityResendCode interface {
	DoResend()
}

type InputVerifyIdentityViaWhatsapp

type InputVerifyIdentityViaWhatsapp interface {
	SelectVerifyIdentityViaWhatsapp()
}

type InputVerifyIdentityViaWhatsappCheckCode

type InputVerifyIdentityViaWhatsappCheckCode interface {
	GetWhatsappOTP() string
}

type InputWhatsappOTPResendCode

type InputWhatsappOTPResendCode interface {
	DoResend()
}

type NodeAuthenticationBegin

type NodeAuthenticationBegin struct {
	Stage                authn.AuthenticationStage    `json:"stage"`
	Identity             *identity.Info               `json:"-"`
	PrimaryAuthenticator *authenticator.Info          `json:"-"`
	AuthenticationConfig *config.AuthenticationConfig `json:"-"`
	AuthenticatorConfig  *config.AuthenticatorConfig  `json:"-"`
	Authenticators       []*authenticator.Info        `json:"-"`
}

func (*NodeAuthenticationBegin) DeriveEdges

func (n *NodeAuthenticationBegin) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeAuthenticationBegin) GetAuthenticationEdges

func (n *NodeAuthenticationBegin) GetAuthenticationEdges() ([]interaction.Edge, error)

GetAuthenticationEdges implements AuthenticationBeginNode. nolint:gocognit

func (*NodeAuthenticationBegin) GetAuthenticationStage

func (n *NodeAuthenticationBegin) GetAuthenticationStage() authn.AuthenticationStage

GetAuthenticationStage implements AuthenticationBeginNode.

func (*NodeAuthenticationBegin) GetEffects

func (n *NodeAuthenticationBegin) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeAuthenticationBegin) Prepare

type NodeAuthenticationEnd

type NodeAuthenticationEnd struct {
	Stage                 authn.AuthenticationStage `json:"stage"`
	AuthenticationType    authn.AuthenticationType  `json:"authentication_type"`
	VerifiedAuthenticator *authenticator.Info       `json:"verified_authenticator"`
	RecoveryCode          *mfa.RecoveryCode         `json:"recovery_code"`
}

func (*NodeAuthenticationEnd) DeriveEdges

func (n *NodeAuthenticationEnd) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeAuthenticationEnd) FillDetails

func (n *NodeAuthenticationEnd) FillDetails(err error) error

func (*NodeAuthenticationEnd) GetEffects

func (n *NodeAuthenticationEnd) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeAuthenticationEnd) IsFailure

func (n *NodeAuthenticationEnd) IsFailure() (err error)

func (*NodeAuthenticationEnd) Prepare

type NodeAuthenticationLoginLink struct {
	Stage         authn.AuthenticationStage `json:"stage"`
	Authenticator *authenticator.Info       `json:"authenticator"`
}

func (*NodeAuthenticationLoginLink) DeriveEdges

func (*NodeAuthenticationLoginLink) GetEffects

func (*NodeAuthenticationLoginLink) Prepare

type NodeAuthenticationLoginLinkTrigger

type NodeAuthenticationLoginLinkTrigger struct {
	Stage              authn.AuthenticationStage `json:"stage"`
	Authenticator      *authenticator.Info       `json:"authenticator"`
	Authenticators     []*authenticator.Info     `json:"authenticators"`
	AuthenticatorIndex int                       `json:"authenticator_index"`
	Channel            string                    `json:"channel"`
	Target             string                    `json:"target"`
}

func (*NodeAuthenticationLoginLinkTrigger) DeriveEdges

func (*NodeAuthenticationLoginLinkTrigger) GetAuthenticatorIndex

func (n *NodeAuthenticationLoginLinkTrigger) GetAuthenticatorIndex() int

GetAuthenticatorIndex implements LoginLinkOTPAuthnNode.

func (*NodeAuthenticationLoginLinkTrigger) GetEffects

func (*NodeAuthenticationLoginLinkTrigger) GetLoginLinkOTPChannel

func (n *NodeAuthenticationLoginLinkTrigger) GetLoginLinkOTPChannel() string

GetLoginLinkOTPChannel implements LoginLinkOTPNode.

func (*NodeAuthenticationLoginLinkTrigger) GetLoginLinkOTPOOBType

func (n *NodeAuthenticationLoginLinkTrigger) GetLoginLinkOTPOOBType() interaction.OOBType

GetLoginLinkOTPOOBType implements LoginLinkOTPNode.

func (*NodeAuthenticationLoginLinkTrigger) GetLoginLinkOTPTarget

func (n *NodeAuthenticationLoginLinkTrigger) GetLoginLinkOTPTarget() string

GetLoginLinkOTPTarget implements LoginLinkOTPNode.

func (*NodeAuthenticationLoginLinkTrigger) Prepare

type NodeAuthenticationOOB

type NodeAuthenticationOOB struct {
	Stage             authn.AuthenticationStage `json:"stage"`
	AuthenticatorType model.AuthenticatorType   `json:"authenticator_type"`
	Authenticator     *authenticator.Info       `json:"authenticator"`
}

func (*NodeAuthenticationOOB) DeriveEdges

func (n *NodeAuthenticationOOB) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeAuthenticationOOB) GetEffects

func (n *NodeAuthenticationOOB) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeAuthenticationOOB) Prepare

type NodeAuthenticationOOBTrigger

type NodeAuthenticationOOBTrigger struct {
	Stage         authn.AuthenticationStage `json:"stage"`
	Authenticator *authenticator.Info       `json:"authenticator"`
	Target        string                    `json:"target"`
	Channel       string                    `json:"channel"`
	CodeLength    int                       `json:"code_length"`
}

func (*NodeAuthenticationOOBTrigger) DeriveEdges

func (*NodeAuthenticationOOBTrigger) GetEffects

func (*NodeAuthenticationOOBTrigger) GetOOBOTPChannel

func (n *NodeAuthenticationOOBTrigger) GetOOBOTPChannel() string

GetOOBOTPChannel implements OOBOTPNode.

func (*NodeAuthenticationOOBTrigger) GetOOBOTPCodeLength

func (n *NodeAuthenticationOOBTrigger) GetOOBOTPCodeLength() int

GetOOBOTPCodeLength implements OOBOTPNode.

func (*NodeAuthenticationOOBTrigger) GetOOBOTPOOBType

func (n *NodeAuthenticationOOBTrigger) GetOOBOTPOOBType() interaction.OOBType

GetOOBOTPOOBType implements OOBOTPNode.

func (*NodeAuthenticationOOBTrigger) GetOOBOTPTarget

func (n *NodeAuthenticationOOBTrigger) GetOOBOTPTarget() string

GetOOBOTPTarget implements OOBOTPNode.

func (*NodeAuthenticationOOBTrigger) GetSelectedPhoneNumberForPhoneOTPAuthentication

func (n *NodeAuthenticationOOBTrigger) GetSelectedPhoneNumberForPhoneOTPAuthentication() string

GetSelectedPhoneNumberForPhoneOTPAuthentication implements AuthenticationPhoneOTPTriggerNode

func (*NodeAuthenticationOOBTrigger) Prepare

type NodeAuthenticationPasskey

type NodeAuthenticationPasskey struct {
	Stage         authn.AuthenticationStage `json:"stage"`
	Spec          *authenticator.Spec       `json:"spec"`
	Authenticator *authenticator.Info       `json:"authenticator"`
	RequireUpdate bool                      `json:"require_update"`
}

func (*NodeAuthenticationPasskey) DeriveEdges

func (n *NodeAuthenticationPasskey) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeAuthenticationPasskey) GetEffects

func (*NodeAuthenticationPasskey) GetRequireUpdateAuthenticator

func (n *NodeAuthenticationPasskey) GetRequireUpdateAuthenticator(stage authn.AuthenticationStage) (info *authenticator.Info, ok bool)

func (*NodeAuthenticationPasskey) Prepare

type NodeAuthenticationPassword

type NodeAuthenticationPassword struct {
	Stage               authn.AuthenticationStage              `json:"stage"`
	Authenticator       *authenticator.Info                    `json:"authenticator"`
	RequireUpdate       bool                                   `json:"require_update"`
	RequireUpdateReason *interaction.AuthenticatorUpdateReason `json:"require_update_reason,omitempty"`
}

func (*NodeAuthenticationPassword) DeriveEdges

func (n *NodeAuthenticationPassword) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeAuthenticationPassword) GetEffects

func (*NodeAuthenticationPassword) GetRequireUpdateAuthenticator

func (n *NodeAuthenticationPassword) GetRequireUpdateAuthenticator(stage authn.AuthenticationStage) (info *authenticator.Info, reason *interaction.AuthenticatorUpdateReason, ok bool)

func (*NodeAuthenticationPassword) Prepare

type NodeAuthenticationTOTP

type NodeAuthenticationTOTP struct {
	Stage         authn.AuthenticationStage `json:"stage"`
	Authenticator *authenticator.Info       `json:"authenticator"`
}

func (*NodeAuthenticationTOTP) DeriveEdges

func (n *NodeAuthenticationTOTP) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeAuthenticationTOTP) GetEffects

func (n *NodeAuthenticationTOTP) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeAuthenticationTOTP) Prepare

type NodeAuthenticationWhatsapp

type NodeAuthenticationWhatsapp struct {
	Stage         authn.AuthenticationStage `json:"stage"`
	Authenticator *authenticator.Info       `json:"authenticator"`
}

func (*NodeAuthenticationWhatsapp) DeriveEdges

func (n *NodeAuthenticationWhatsapp) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeAuthenticationWhatsapp) GetEffects

func (*NodeAuthenticationWhatsapp) Prepare

type NodeAuthenticationWhatsappTrigger

type NodeAuthenticationWhatsappTrigger struct {
	Stage              authn.AuthenticationStage `json:"stage"`
	Authenticator      *authenticator.Info       `json:"authenticator"`
	Authenticators     []*authenticator.Info     `json:"authenticators"`
	AuthenticatorIndex int                       `json:"authenticator_index"`
	WhatsappOTPLength  int                       `json:"whatsapp_otp_length"`
	Phone              string                    `json:"phone"`
}

func (*NodeAuthenticationWhatsappTrigger) DeriveEdges

func (*NodeAuthenticationWhatsappTrigger) GetAuthenticatorIndex

func (n *NodeAuthenticationWhatsappTrigger) GetAuthenticatorIndex() int

GetAuthenticatorIndex implements WhatsappOTPAuthnNode.

func (*NodeAuthenticationWhatsappTrigger) GetEffects

func (*NodeAuthenticationWhatsappTrigger) GetOTPKindFactory

GetOTPKindFactory implements WhatsappOTPNode.

func (*NodeAuthenticationWhatsappTrigger) GetPhone

GetPhone implements WhatsappOTPNode.

func (*NodeAuthenticationWhatsappTrigger) GetSelectedPhoneNumberForPhoneOTPAuthentication

func (n *NodeAuthenticationWhatsappTrigger) GetSelectedPhoneNumberForPhoneOTPAuthentication() string

GetSelectedPhoneNumberForPhoneOTPAuthentication implements AuthenticationPhoneOTPTriggerNode

func (*NodeAuthenticationWhatsappTrigger) GetWhatsappOTPLength

func (n *NodeAuthenticationWhatsappTrigger) GetWhatsappOTPLength() int

GetWhatsappOTP implements WhatsappOTPNode.

func (*NodeAuthenticationWhatsappTrigger) Prepare

type NodeChangePasswordBegin

type NodeChangePasswordBegin struct {
	Force  bool                                   `json:"force"`
	Reason *interaction.AuthenticatorUpdateReason `json:"reason,omitempty"`
	Stage  authn.AuthenticationStage              `json:"stage"`
}

func (*NodeChangePasswordBegin) DeriveEdges

func (n *NodeChangePasswordBegin) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeChangePasswordBegin) GetChangeReason

func (*NodeChangePasswordBegin) GetEffects

func (n *NodeChangePasswordBegin) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeChangePasswordBegin) IsForceChangePassword

func (n *NodeChangePasswordBegin) IsForceChangePassword() bool

func (*NodeChangePasswordBegin) Prepare

type NodeChangePasswordEnd

type NodeChangePasswordEnd struct {
	Stage            authn.AuthenticationStage `json:"stage"`
	OldAuthenticator *authenticator.Info       `json:"old_authenticator"`
	NewAuthenticator *authenticator.Info       `json:"new_authenticator,omitempty"`
}

func (*NodeChangePasswordEnd) DeriveEdges

func (n *NodeChangePasswordEnd) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeChangePasswordEnd) GetEffects

func (n *NodeChangePasswordEnd) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeChangePasswordEnd) Prepare

type NodeCheckIdentityConflict

type NodeCheckIdentityConflict struct {
	NewIdentity            *identity.Info                 `json:"new_identity"`
	DuplicatedIdentity     *identity.Info                 `json:"duplicated_identity"`
	IdentityConflictConfig *config.IdentityConflictConfig `json:"-"`
}

func (*NodeCheckIdentityConflict) DeriveEdges

func (n *NodeCheckIdentityConflict) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeCheckIdentityConflict) FillDetails

func (n *NodeCheckIdentityConflict) FillDetails(err error) error

func (*NodeCheckIdentityConflict) GetEffects

func (*NodeCheckIdentityConflict) Prepare

type NodeConfirmTerminateOtherSessionsBegin

type NodeConfirmTerminateOtherSessionsBegin struct {
}

func (*NodeConfirmTerminateOtherSessionsBegin) DeriveEdges

func (*NodeConfirmTerminateOtherSessionsBegin) GetEffects

func (*NodeConfirmTerminateOtherSessionsBegin) Prepare

type NodeConfirmTerminateOtherSessionsEnd

type NodeConfirmTerminateOtherSessionsEnd struct {
}

func (*NodeConfirmTerminateOtherSessionsEnd) DeriveEdges

func (*NodeConfirmTerminateOtherSessionsEnd) GetEffects

func (*NodeConfirmTerminateOtherSessionsEnd) Prepare

type NodeCreateAuthenticatorBegin

type NodeCreateAuthenticatorBegin struct {
	NewAuthenticatorID string                    `json:"new_authenticator_id"`
	Stage              authn.AuthenticationStage `json:"stage"`
	AuthenticatorType  *model.AuthenticatorType  `json:"authenticator_type"`
	SkipMFASetup       bool                      `json:"skip_mfa_setup"`
	RequestedByUser    bool                      `json:"requested_by_user"`

	Identity             *identity.Info               `json:"-"`
	PrimaryAuthenticator *authenticator.Info          `json:"-"`
	AuthenticationConfig *config.AuthenticationConfig `json:"-"`
	AuthenticatorConfig  *config.AuthenticatorConfig  `json:"-"`
	Authenticators       []*authenticator.Info        `json:"-"`
}

func (*NodeCreateAuthenticatorBegin) DeriveEdges

func (*NodeCreateAuthenticatorBegin) GetCreateAuthenticatorEdges

func (n *NodeCreateAuthenticatorBegin) GetCreateAuthenticatorEdges() ([]interaction.Edge, error)

GetCreateAuthenticatorEdges implements CreateAuthenticatorBeginNode.

func (*NodeCreateAuthenticatorBegin) GetCreateAuthenticatorStage

func (n *NodeCreateAuthenticatorBegin) GetCreateAuthenticatorStage() authn.AuthenticationStage

func (*NodeCreateAuthenticatorBegin) GetEffects

func (*NodeCreateAuthenticatorBegin) IsOOBAuthenticatorTypeAllowed

func (n *NodeCreateAuthenticatorBegin) IsOOBAuthenticatorTypeAllowed(oobAuthenticatorType model.AuthenticatorType) (bool, error)

IsOOBAuthenticatorTypeAllowed implements SetupOOBOTPNode.

func (*NodeCreateAuthenticatorBegin) Prepare

type NodeCreateAuthenticatorEnd

type NodeCreateAuthenticatorEnd struct {
	Stage          authn.AuthenticationStage `json:"stage"`
	Authenticators []*authenticator.Info     `json:"authenticators"`
}

func (*NodeCreateAuthenticatorEnd) DeriveEdges

func (n *NodeCreateAuthenticatorEnd) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeCreateAuthenticatorEnd) GetEffects

func (*NodeCreateAuthenticatorEnd) Prepare

type NodeCreateAuthenticatorLoginLinkOTP

type NodeCreateAuthenticatorLoginLinkOTP struct {
	Stage         authn.AuthenticationStage `json:"stage"`
	Authenticator *authenticator.Info       `json:"authenticator"`
	Target        string                    `json:"target"`
	Channel       string                    `json:"channel"`
}

func (*NodeCreateAuthenticatorLoginLinkOTP) DeriveEdges

func (*NodeCreateAuthenticatorLoginLinkOTP) GetEffects

func (*NodeCreateAuthenticatorLoginLinkOTP) Prepare

type NodeCreateAuthenticatorLoginLinkOTPSetup

type NodeCreateAuthenticatorLoginLinkOTPSetup struct {
	Stage         authn.AuthenticationStage `json:"stage"`
	Authenticator *authenticator.Info       `json:"authenticator"`
	Target        string                    `json:"target"`
	Channel       string                    `json:"channel"`
}

func (*NodeCreateAuthenticatorLoginLinkOTPSetup) DeriveEdges

func (*NodeCreateAuthenticatorLoginLinkOTPSetup) GetEffects

func (*NodeCreateAuthenticatorLoginLinkOTPSetup) GetLoginLinkOTPChannel

func (n *NodeCreateAuthenticatorLoginLinkOTPSetup) GetLoginLinkOTPChannel() string

GetLoginLinkOTPChannel implements LoginLinkOTPNode.

func (*NodeCreateAuthenticatorLoginLinkOTPSetup) GetLoginLinkOTPOOBType

func (n *NodeCreateAuthenticatorLoginLinkOTPSetup) GetLoginLinkOTPOOBType() interaction.OOBType

GetLoginLinkOTPOOBType implements LoginLinkOTPNode.

func (*NodeCreateAuthenticatorLoginLinkOTPSetup) GetLoginLinkOTPTarget

func (n *NodeCreateAuthenticatorLoginLinkOTPSetup) GetLoginLinkOTPTarget() string

GetLoginLinkOTPTarget implements LoginLinkOTPNode.

func (*NodeCreateAuthenticatorLoginLinkOTPSetup) Prepare

type NodeCreateAuthenticatorOOB

type NodeCreateAuthenticatorOOB struct {
	Stage         authn.AuthenticationStage `json:"stage"`
	Authenticator *authenticator.Info       `json:"authenticator"`
}

func (*NodeCreateAuthenticatorOOB) DeriveEdges

func (n *NodeCreateAuthenticatorOOB) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeCreateAuthenticatorOOB) GetEffects

func (*NodeCreateAuthenticatorOOB) Prepare

type NodeCreateAuthenticatorOOBSetup

type NodeCreateAuthenticatorOOBSetup struct {
	Stage         authn.AuthenticationStage `json:"stage"`
	Authenticator *authenticator.Info       `json:"authenticator"`
	Target        string                    `json:"target"`
	Channel       string                    `json:"channel"`
	CodeLength    int                       `json:"code_length"`
}

func (*NodeCreateAuthenticatorOOBSetup) DeriveEdges

func (*NodeCreateAuthenticatorOOBSetup) GetCreateAuthenticatorStage

func (n *NodeCreateAuthenticatorOOBSetup) GetCreateAuthenticatorStage() authn.AuthenticationStage

GetCreateAuthenticatorStage implements CreateAuthenticatorPhoneOTPNode

func (*NodeCreateAuthenticatorOOBSetup) GetEffects

func (*NodeCreateAuthenticatorOOBSetup) GetOOBOTPChannel

func (n *NodeCreateAuthenticatorOOBSetup) GetOOBOTPChannel() string

GetOOBOTPChannel implements OOBOTPNode.

func (*NodeCreateAuthenticatorOOBSetup) GetOOBOTPCodeLength

func (n *NodeCreateAuthenticatorOOBSetup) GetOOBOTPCodeLength() int

GetOOBOTPCodeLength implements OOBOTPNode.

func (*NodeCreateAuthenticatorOOBSetup) GetOOBOTPOOBType

func (n *NodeCreateAuthenticatorOOBSetup) GetOOBOTPOOBType() interaction.OOBType

GetOOBOTPOOBType implements OOBOTPNode.

func (*NodeCreateAuthenticatorOOBSetup) GetOOBOTPTarget

func (n *NodeCreateAuthenticatorOOBSetup) GetOOBOTPTarget() string

GetOOBOTPTarget implements OOBOTPNode.

func (*NodeCreateAuthenticatorOOBSetup) GetSelectedPhoneNumberForPhoneOTP

func (n *NodeCreateAuthenticatorOOBSetup) GetSelectedPhoneNumberForPhoneOTP() string

GetSelectedPhoneNumberForPhoneOTP implements CreateAuthenticatorPhoneOTPNode

func (*NodeCreateAuthenticatorOOBSetup) Prepare

type NodeCreateAuthenticatorPasskey

type NodeCreateAuthenticatorPasskey struct {
	Stage         authn.AuthenticationStage `json:"stage"`
	Authenticator *authenticator.Info       `json:"authenticator"`
	Identity      *identity.Info            `json:"identity"`
}

func (*NodeCreateAuthenticatorPasskey) DeriveEdges

func (*NodeCreateAuthenticatorPasskey) GetEffects

func (*NodeCreateAuthenticatorPasskey) Prepare

type NodeCreateAuthenticatorPassword

type NodeCreateAuthenticatorPassword struct {
	Stage         authn.AuthenticationStage `json:"stage"`
	Authenticator *authenticator.Info       `json:"authenticator"`
}

func (*NodeCreateAuthenticatorPassword) DeriveEdges

func (*NodeCreateAuthenticatorPassword) GetEffects

func (*NodeCreateAuthenticatorPassword) Prepare

type NodeCreateAuthenticatorTOTP

type NodeCreateAuthenticatorTOTP struct {
	Stage         authn.AuthenticationStage `json:"stage"`
	Authenticator *authenticator.Info       `json:"authenticator"`
}

func (*NodeCreateAuthenticatorTOTP) DeriveEdges

func (*NodeCreateAuthenticatorTOTP) GetEffects

func (*NodeCreateAuthenticatorTOTP) Prepare

type NodeCreateAuthenticatorTOTPSetup

type NodeCreateAuthenticatorTOTPSetup struct {
	Stage         authn.AuthenticationStage `json:"stage"`
	Authenticator *authenticator.Info       `json:"authenticator"`
}

func (*NodeCreateAuthenticatorTOTPSetup) DeriveEdges

func (*NodeCreateAuthenticatorTOTPSetup) GetEffects

func (*NodeCreateAuthenticatorTOTPSetup) GetTOTPAuthenticator

func (n *NodeCreateAuthenticatorTOTPSetup) GetTOTPAuthenticator() *authenticator.Info

GetTOTPAuthenticator implements SetupTOTPNode.

func (*NodeCreateAuthenticatorTOTPSetup) Prepare

type NodeCreateAuthenticatorWhatsappOTP

type NodeCreateAuthenticatorWhatsappOTP struct {
	Stage         authn.AuthenticationStage `json:"stage"`
	Authenticator *authenticator.Info       `json:"authenticator"`
}

func (*NodeCreateAuthenticatorWhatsappOTP) DeriveEdges

func (*NodeCreateAuthenticatorWhatsappOTP) GetEffects

func (*NodeCreateAuthenticatorWhatsappOTP) Prepare

type NodeCreateAuthenticatorWhatsappOTPSetup

type NodeCreateAuthenticatorWhatsappOTPSetup struct {
	Stage             authn.AuthenticationStage `json:"stage"`
	Authenticator     *authenticator.Info       `json:"authenticator"`
	WhatsappOTPLength int                       `json:"whatsapp_otp_length"`
	Phone             string                    `json:"phone"`
}

func (*NodeCreateAuthenticatorWhatsappOTPSetup) DeriveEdges

func (*NodeCreateAuthenticatorWhatsappOTPSetup) GetCreateAuthenticatorStage

func (n *NodeCreateAuthenticatorWhatsappOTPSetup) GetCreateAuthenticatorStage() authn.AuthenticationStage

GetCreateAuthenticatorStage implements CreateAuthenticatorPhoneOTPNode

func (*NodeCreateAuthenticatorWhatsappOTPSetup) GetEffects

func (*NodeCreateAuthenticatorWhatsappOTPSetup) GetOTPKindFactory

GetOTPKindFactory implements WhatsappOTPNode.

func (*NodeCreateAuthenticatorWhatsappOTPSetup) GetPhone

GetPhone implements WhatsappOTPNode.

func (*NodeCreateAuthenticatorWhatsappOTPSetup) GetSelectedPhoneNumberForPhoneOTP

func (n *NodeCreateAuthenticatorWhatsappOTPSetup) GetSelectedPhoneNumberForPhoneOTP() string

GetSelectedPhoneNumberForPhoneOTP implements CreateAuthenticatorPhoneOTPNode

func (*NodeCreateAuthenticatorWhatsappOTPSetup) GetWhatsappOTPLength

func (n *NodeCreateAuthenticatorWhatsappOTPSetup) GetWhatsappOTPLength() int

GetWhatsappOTPLength implements WhatsappOTPNode.

func (*NodeCreateAuthenticatorWhatsappOTPSetup) Prepare

type NodeCreateIdentityBegin

type NodeCreateIdentityBegin struct {
	IdentityTypes         []model.IdentityType          `json:"-"`
	IdentityConfig        *config.IdentityConfig        `json:"-"`
	IdentityFeatureConfig *config.IdentityFeatureConfig `json:"-"`
}

func (*NodeCreateIdentityBegin) DeriveEdges

func (n *NodeCreateIdentityBegin) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeCreateIdentityBegin) GetEffects

func (n *NodeCreateIdentityBegin) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeCreateIdentityBegin) GetIdentityCandidates

func (n *NodeCreateIdentityBegin) GetIdentityCandidates() []identity.Candidate

func (*NodeCreateIdentityBegin) Prepare

type NodeCreateIdentityEnd

type NodeCreateIdentityEnd struct {
	IdentitySpec *identity.Spec `json:"identity_spec"`
	IdentityInfo *identity.Info `json:"identity_info"`
}

func (*NodeCreateIdentityEnd) DeriveEdges

func (n *NodeCreateIdentityEnd) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeCreateIdentityEnd) GetEffects

func (n *NodeCreateIdentityEnd) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeCreateIdentityEnd) Prepare

type NodeDoConsumeRecoveryCode

type NodeDoConsumeRecoveryCode struct {
	RecoveryCode *mfa.RecoveryCode `json:"recovery_code"`
}

func (*NodeDoConsumeRecoveryCode) DeriveEdges

func (n *NodeDoConsumeRecoveryCode) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoConsumeRecoveryCode) GetEffects

func (*NodeDoConsumeRecoveryCode) Prepare

func (*NodeDoConsumeRecoveryCode) UsedAuthenticationLockoutMethod

func (n *NodeDoConsumeRecoveryCode) UsedAuthenticationLockoutMethod() (config.AuthenticationLockoutMethod, bool)

type NodeDoCreateAuthenticator

type NodeDoCreateAuthenticator struct {
	Stage          authn.AuthenticationStage `json:"stage"`
	Authenticators []*authenticator.Info     `json:"authenticators"`
	IsAdminAPI     bool                      `json:"is_admin_api"`
}

func (*NodeDoCreateAuthenticator) DeriveEdges

func (n *NodeDoCreateAuthenticator) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoCreateAuthenticator) GetEffects

func (*NodeDoCreateAuthenticator) Prepare

func (*NodeDoCreateAuthenticator) UserAuthenticator

func (*NodeDoCreateAuthenticator) UserNewAuthenticators

func (n *NodeDoCreateAuthenticator) UserNewAuthenticators() []*authenticator.Info

type NodeDoCreateIdentity

type NodeDoCreateIdentity struct {
	Identity                *identity.Info `json:"identity"`
	IsAddition              bool           `json:"is_addition"`
	IsAdminAPI              bool           `json:"is_admin_api"`
	SkipCreateIdentityEvent bool           `json:"skip_create_identity_event"`
}

func (*NodeDoCreateIdentity) DeriveEdges

func (n *NodeDoCreateIdentity) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoCreateIdentity) GetEffects

func (n *NodeDoCreateIdentity) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

nolint:gocognit

func (*NodeDoCreateIdentity) Prepare

func (*NodeDoCreateIdentity) UserNewIdentity

func (n *NodeDoCreateIdentity) UserNewIdentity() *identity.Info

type NodeDoCreateUser

type NodeDoCreateUser struct {
	CreateUserID    string `json:"create_user_id"`
	BypassRateLimit bool   `json:"bypass_rate_limit"`
	IsAdminAPI      bool   `json:"is_admin_api"`
}

func (*NodeDoCreateUser) DeriveEdges

func (n *NodeDoCreateUser) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoCreateUser) GetEffects

func (n *NodeDoCreateUser) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeDoCreateUser) NewUserID

func (n *NodeDoCreateUser) NewUserID() string

func (*NodeDoCreateUser) Prepare

func (n *NodeDoCreateUser) Prepare(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) error

func (*NodeDoCreateUser) UserID

func (n *NodeDoCreateUser) UserID() string

type NodeDoEnsureSession

type NodeDoEnsureSession struct {
	CreateReason            session.CreateReason      `json:"reason"`
	SessionToCreate         *idpsession.IDPSession    `json:"session_to_create,omitempty"`
	AuthenticationInfoEntry *authenticationinfo.Entry `json:"authentication_info_entry,omitempty"`
	UpdateLoginTime         time.Time                 `json:"update_login_time,omitempty"`
	UpdateSessionID         string                    `json:"update_session_id,omitempty"`
	UpdateSessionAMR        []string                  `json:"update_session_amr,omitempty"`
	SessionCookie           *http.Cookie              `json:"session_cookie,omitempty"`
	SameSiteStrictCookie    *http.Cookie              `json:"same_site_strict_cookie,omitempty"`
	IsAdminAPI              bool                      `json:"is_admin_api"`
}

func (*NodeDoEnsureSession) DeriveEdges

func (n *NodeDoEnsureSession) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoEnsureSession) GetAuthenticationInfoEntry

func (n *NodeDoEnsureSession) GetAuthenticationInfoEntry() *authenticationinfo.Entry

func (*NodeDoEnsureSession) GetCookies

func (n *NodeDoEnsureSession) GetCookies() (cookies []*http.Cookie)

GetCookies implements CookiesGetter

func (*NodeDoEnsureSession) GetEffects

func (n *NodeDoEnsureSession) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

nolint:gocognit

func (*NodeDoEnsureSession) Prepare

func (n *NodeDoEnsureSession) Prepare(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) error

type NodeDoGenerateRecoveryCode

type NodeDoGenerateRecoveryCode struct {
	RecoveryCodes []string `json:"recovery_nodes"`
}

func (*NodeDoGenerateRecoveryCode) DeriveEdges

func (n *NodeDoGenerateRecoveryCode) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoGenerateRecoveryCode) GetEffects

func (*NodeDoGenerateRecoveryCode) Prepare

type NodeDoRemoveAuthenticator

type NodeDoRemoveAuthenticator struct {
	Authenticator        *authenticator.Info `json:"authenticator"`
	BypassMFARequirement bool                `json:"bypass_mfa_requirement"`
}

func (*NodeDoRemoveAuthenticator) DeriveEdges

func (n *NodeDoRemoveAuthenticator) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoRemoveAuthenticator) GetEffects

nolint:gocognit

func (*NodeDoRemoveAuthenticator) Prepare

type NodeDoRemoveIdentity

type NodeDoRemoveIdentity struct {
	Identity   *identity.Info `json:"identity"`
	IsAdminAPI bool           `json:"is_admin_api"`
}

func (*NodeDoRemoveIdentity) DeriveEdges

func (n *NodeDoRemoveIdentity) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoRemoveIdentity) GetEffects

func (n *NodeDoRemoveIdentity) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeDoRemoveIdentity) Prepare

type NodeDoResetLockoutAttempts

type NodeDoResetLockoutAttempts struct {
}

func (*NodeDoResetLockoutAttempts) DeriveEdges

func (n *NodeDoResetLockoutAttempts) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoResetLockoutAttempts) GetEffects

func (*NodeDoResetLockoutAttempts) Prepare

type NodeDoUpdateAuthenticator

type NodeDoUpdateAuthenticator struct {
	Stage                     authn.AuthenticationStage `json:"stage"`
	AuthenticatorBeforeUpdate *authenticator.Info       `json:"authenticator_before_update"`
	AuthenticatorAfterUpdate  *authenticator.Info       `json:"authenticator_after_update"`
}

func (*NodeDoUpdateAuthenticator) DeriveEdges

func (n *NodeDoUpdateAuthenticator) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoUpdateAuthenticator) GetEffects

func (*NodeDoUpdateAuthenticator) Prepare

func (*NodeDoUpdateAuthenticator) UserAuthenticator

type NodeDoUpdateIdentity

type NodeDoUpdateIdentity struct {
	IdentityBeforeUpdate *identity.Info `json:"identity_before_update"`
	IdentityAfterUpdate  *identity.Info `json:"identity_after_update"`
	IsAdminAPI           bool           `json:"is_admin_api"`
}

func (*NodeDoUpdateIdentity) DeriveEdges

func (n *NodeDoUpdateIdentity) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoUpdateIdentity) GetEffects

func (n *NodeDoUpdateIdentity) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeDoUpdateIdentity) Prepare

func (*NodeDoUpdateIdentity) UserIdentity

func (n *NodeDoUpdateIdentity) UserIdentity() *identity.Info

type NodeDoUseAuthenticator

type NodeDoUseAuthenticator struct {
	Stage             authn.AuthenticationStage `json:"stage"`
	Authenticator     *authenticator.Info       `json:"authenticator"`
	DeviceTokenCookie *http.Cookie              `json:"device_token_cookie"`
}

func (*NodeDoUseAuthenticator) DeriveEdges

func (n *NodeDoUseAuthenticator) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoUseAuthenticator) GetCookies

func (n *NodeDoUseAuthenticator) GetCookies() []*http.Cookie

GetCookies implements CookiesGetter

func (*NodeDoUseAuthenticator) GetEffects

func (n *NodeDoUseAuthenticator) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeDoUseAuthenticator) Prepare

func (*NodeDoUseAuthenticator) UsedAuthenticationLockoutMethod

func (n *NodeDoUseAuthenticator) UsedAuthenticationLockoutMethod() (config.AuthenticationLockoutMethod, bool)

func (*NodeDoUseAuthenticator) UserAuthenticator

func (n *NodeDoUseAuthenticator) UserAuthenticator(stage authn.AuthenticationStage) (*authenticator.Info, bool)

type NodeDoUseIdentity

type NodeDoUseIdentity struct {
	Identity *identity.Info `json:"identity"`
}

func (*NodeDoUseIdentity) DeriveEdges

func (n *NodeDoUseIdentity) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoUseIdentity) GetEffects

func (n *NodeDoUseIdentity) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeDoUseIdentity) Prepare

func (n *NodeDoUseIdentity) Prepare(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) error

func (*NodeDoUseIdentity) UserID

func (n *NodeDoUseIdentity) UserID() string

func (*NodeDoUseIdentity) UserIdentity

func (n *NodeDoUseIdentity) UserIdentity() *identity.Info

type NodeDoUseUser

type NodeDoUseUser struct {
	UseUserID string `json:"user_id"`
}

func (*NodeDoUseUser) DeriveEdges

func (n *NodeDoUseUser) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoUseUser) GetEffects

func (n *NodeDoUseUser) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeDoUseUser) Prepare

func (n *NodeDoUseUser) Prepare(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) error

func (*NodeDoUseUser) UserID

func (n *NodeDoUseUser) UserID() string

type NodeDoVerifyIdentity

type NodeDoVerifyIdentity struct {
	Identity              *identity.Info      `json:"identity"`
	NewVerifiedClaim      *verification.Claim `json:"new_verified_claim"`
	IsAdminAPI            bool                `json:"is_admin_api"`
	SkipVerificationEvent bool                `json:"skip_verification_event"`
}

func (*NodeDoVerifyIdentity) DeriveEdges

func (n *NodeDoVerifyIdentity) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeDoVerifyIdentity) GetEffects

func (n *NodeDoVerifyIdentity) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeDoVerifyIdentity) Prepare

type NodeEnsurePasswordChange

type NodeEnsurePasswordChange struct {
	Stage authn.AuthenticationStage `json:"stage"`
}

func (*NodeEnsurePasswordChange) DeriveEdges

func (n *NodeEnsurePasswordChange) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeEnsurePasswordChange) GetEffects

func (n *NodeEnsurePasswordChange) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeEnsurePasswordChange) Prepare

type NodeEnsureRemoveAnonymousIdentity

type NodeEnsureRemoveAnonymousIdentity struct {
	AnonymousIdentity *identity.Info `json:"anonymous_identity,omitempty"`
	IsAdminAPI        bool           `json:"is_admin_api"`
}

func (*NodeEnsureRemoveAnonymousIdentity) DeriveEdges

func (*NodeEnsureRemoveAnonymousIdentity) GetEffects

func (*NodeEnsureRemoveAnonymousIdentity) Prepare

type NodeEnsureVerificationBegin

type NodeEnsureVerificationBegin struct {
	Identity                *identity.Info                   `json:"identity"`
	RequestedByUser         bool                             `json:"requested_by_user"`
	SkipVerification        bool                             `json:"skip_verification"`
	PhoneOTPMode            config.AuthenticatorPhoneOTPMode `json:"phone_otp_mode"`
	VerificationClaimStatus verification.ClaimStatus         `json:"-"`
}

func (*NodeEnsureVerificationBegin) DeriveEdges

func (*NodeEnsureVerificationBegin) GetEffects

func (*NodeEnsureVerificationBegin) GetVerifyIdentityEdges

func (n *NodeEnsureVerificationBegin) GetVerifyIdentityEdges() ([]interaction.Edge, error)

GetVerifyIdentityEdges implements EnsureVerificationBeginNode

func (*NodeEnsureVerificationBegin) Prepare

type NodeEnsureVerificationEnd

type NodeEnsureVerificationEnd struct {
	Identity         *identity.Info      `json:"identity"`
	NewVerifiedClaim *verification.Claim `json:"new_verified_claim,omitempty"`
}

func (*NodeEnsureVerificationEnd) DeriveEdges

func (n *NodeEnsureVerificationEnd) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeEnsureVerificationEnd) GetEffects

func (*NodeEnsureVerificationEnd) Prepare

type NodeForgotPasswordBegin

type NodeForgotPasswordBegin struct {
	LoginIDKeys  []config.LoginIDKeyConfig `json:"-"`
	IdentityInfo *identity.Info            `json:"identity_info"`
}

func (*NodeForgotPasswordBegin) DeriveEdges

func (n *NodeForgotPasswordBegin) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeForgotPasswordBegin) GetEffects

func (n *NodeForgotPasswordBegin) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeForgotPasswordBegin) GetIdentityCandidates

func (n *NodeForgotPasswordBegin) GetIdentityCandidates() []identity.Candidate

func (*NodeForgotPasswordBegin) Prepare

type NodeForgotPasswordEnd

type NodeForgotPasswordEnd struct {
	LoginID           string       `json:"login_id"`
	SuccessPageCookie *http.Cookie `json:"success_page_cookie,omitempty"`
}

func (*NodeForgotPasswordEnd) DeriveEdges

func (n *NodeForgotPasswordEnd) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeForgotPasswordEnd) GetCookies

func (n *NodeForgotPasswordEnd) GetCookies() []*http.Cookie

GetCookies implements CookiesGetter

func (*NodeForgotPasswordEnd) GetEffects

func (n *NodeForgotPasswordEnd) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeForgotPasswordEnd) GetLoginID

func (n *NodeForgotPasswordEnd) GetLoginID() string

GetLoginID implements ForgotPasswordSuccessNode.

func (*NodeForgotPasswordEnd) Prepare

type NodeGenerateRecoveryCodeBegin

type NodeGenerateRecoveryCodeBegin struct {
	RecoveryCodes []string `json:"recovery_codes"`
}

func (*NodeGenerateRecoveryCodeBegin) DeriveEdges

func (*NodeGenerateRecoveryCodeBegin) GetEffects

func (*NodeGenerateRecoveryCodeBegin) GetRecoveryCodes

func (n *NodeGenerateRecoveryCodeBegin) GetRecoveryCodes() []string

GetRecoveryCodes implements RecoveryCodeNodes.

func (*NodeGenerateRecoveryCodeBegin) Prepare

type NodeGenerateRecoveryCodeEnd

type NodeGenerateRecoveryCodeEnd struct {
	RecoveryCodes []string `json:"recovery_codes"`
}

func (*NodeGenerateRecoveryCodeEnd) DeriveEdges

func (*NodeGenerateRecoveryCodeEnd) GetEffects

func (*NodeGenerateRecoveryCodeEnd) Prepare

type NodePromptCreatePasskeyBegin

type NodePromptCreatePasskeyBegin struct{}

func (*NodePromptCreatePasskeyBegin) DeriveEdges

func (*NodePromptCreatePasskeyBegin) GetEffects

func (*NodePromptCreatePasskeyBegin) Prepare

type NodePromptCreatePasskeyEnd

type NodePromptCreatePasskeyEnd struct {
	Authenticator *authenticator.Info `json:"authenticator"`
	Identity      *identity.Info      `json:"identity"`
}

func (*NodePromptCreatePasskeyEnd) DeriveEdges

func (n *NodePromptCreatePasskeyEnd) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodePromptCreatePasskeyEnd) GetEffects

func (*NodePromptCreatePasskeyEnd) Prepare

type NodeReauthenticationBegin

type NodeReauthenticationBegin struct {
	Stage               authn.AuthenticationStage   `json:"stage"`
	Authenticators      []*authenticator.Info       `json:"-"`
	AuthenticatorConfig *config.AuthenticatorConfig `json:"-"`
}

func (*NodeReauthenticationBegin) DeriveEdges

func (n *NodeReauthenticationBegin) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeReauthenticationBegin) GetAuthenticationEdges

func (n *NodeReauthenticationBegin) GetAuthenticationEdges() ([]interaction.Edge, error)

GetAuthenticationEdges implements AuthenticationBeginNode.

func (*NodeReauthenticationBegin) GetAuthenticationStage

func (n *NodeReauthenticationBegin) GetAuthenticationStage() authn.AuthenticationStage

GetAuthenticationStage implements AuthenticationBeginNode.

func (*NodeReauthenticationBegin) GetEffects

func (*NodeReauthenticationBegin) Prepare

type NodeRemoveAuthenticator

type NodeRemoveAuthenticator struct {
	AuthenticatorInfo    *authenticator.Info `json:"authenticator_info"`
	BypassMFARequirement bool                `json:"bypass_mfa_requirement"`
}

func (*NodeRemoveAuthenticator) DeriveEdges

func (n *NodeRemoveAuthenticator) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeRemoveAuthenticator) GetEffects

func (n *NodeRemoveAuthenticator) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeRemoveAuthenticator) Prepare

type NodeRemoveIdentity

type NodeRemoveIdentity struct {
	IdentityInfo *identity.Info `json:"identity_info"`
}

func (*NodeRemoveIdentity) DeriveEdges

func (n *NodeRemoveIdentity) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeRemoveIdentity) GetEffects

func (n *NodeRemoveIdentity) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeRemoveIdentity) Prepare

func (n *NodeRemoveIdentity) Prepare(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) error

type NodeResetPasswordBegin

type NodeResetPasswordBegin struct{}

func (*NodeResetPasswordBegin) DeriveEdges

func (n *NodeResetPasswordBegin) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeResetPasswordBegin) GetEffects

func (n *NodeResetPasswordBegin) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeResetPasswordBegin) Prepare

type NodeResetPasswordEnd

type NodeResetPasswordEnd struct {
	InputResetPassword       InputResetPassword       `json:"-"`
	InputResetPasswordByCode InputResetPasswordByCode `json:"-"`
	SuccessPageCookie        *http.Cookie             `json:"success_page_cookie,omitempty"`
}

func (*NodeResetPasswordEnd) DeriveEdges

func (n *NodeResetPasswordEnd) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeResetPasswordEnd) GetCookies

func (n *NodeResetPasswordEnd) GetCookies() []*http.Cookie

GetCookies implements CookiesGetter

func (*NodeResetPasswordEnd) GetEffects

func (n *NodeResetPasswordEnd) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeResetPasswordEnd) Prepare

type NodeSelectIdentityBegin

type NodeSelectIdentityBegin struct {
	IsAuthentication      bool                          `json:"is_authentication"`
	IdentityTypes         []model.IdentityType          `json:"-"`
	IdentityConfig        *config.IdentityConfig        `json:"-"`
	IdentityFeatureConfig *config.IdentityFeatureConfig `json:"-"`
}

func (*NodeSelectIdentityBegin) DeriveEdges

func (n *NodeSelectIdentityBegin) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeSelectIdentityBegin) GetEffects

func (n *NodeSelectIdentityBegin) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeSelectIdentityBegin) GetIdentityCandidates

func (n *NodeSelectIdentityBegin) GetIdentityCandidates() []identity.Candidate

func (*NodeSelectIdentityBegin) Prepare

type NodeSelectIdentityEnd

type NodeSelectIdentityEnd struct {
	IdentitySpec    *identity.Spec `json:"identity_spec"`
	IdentityInfo    *identity.Info `json:"identity_info"`
	OldIdentityInfo *identity.Info `json:"old_identity_info"`
	OtherMatch      *identity.Info `json:"other_match"`
}

func (*NodeSelectIdentityEnd) DeriveEdges

func (n *NodeSelectIdentityEnd) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeSelectIdentityEnd) FillDetails

func (n *NodeSelectIdentityEnd) FillDetails(err error) error

func (*NodeSelectIdentityEnd) GetEffects

func (n *NodeSelectIdentityEnd) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeSelectIdentityEnd) Prepare

type NodeSettingsActionEnd

type NodeSettingsActionEnd struct{}

func (*NodeSettingsActionEnd) DeriveEdges

func (n *NodeSettingsActionEnd) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeSettingsActionEnd) GetEffects

func (n *NodeSettingsActionEnd) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeSettingsActionEnd) Prepare

type NodeUpdateIdentityBegin

type NodeUpdateIdentityBegin struct {
	IdentityID  string                    `json:"identity_id"`
	LoginIDKeys []config.LoginIDKeyConfig `json:"-"`
}

func (*NodeUpdateIdentityBegin) DeriveEdges

func (n *NodeUpdateIdentityBegin) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeUpdateIdentityBegin) GetEffects

func (n *NodeUpdateIdentityBegin) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeUpdateIdentityBegin) GetIdentityCandidates

func (n *NodeUpdateIdentityBegin) GetIdentityCandidates() []identity.Candidate

func (*NodeUpdateIdentityBegin) Prepare

func (*NodeUpdateIdentityBegin) UpdateIdentityID

func (n *NodeUpdateIdentityBegin) UpdateIdentityID() string

type NodeUpdateIdentityEnd

type NodeUpdateIdentityEnd struct {
	IdentityBeforeUpdate *identity.Info `json:"identity_before_update"`
	IdentityAfterUpdate  *identity.Info `json:"identity_after_update"`
}

func (*NodeUpdateIdentityEnd) DeriveEdges

func (n *NodeUpdateIdentityEnd) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeUpdateIdentityEnd) GetEffects

func (n *NodeUpdateIdentityEnd) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeUpdateIdentityEnd) Prepare

type NodeUseIdentityAnonymous

type NodeUseIdentityAnonymous struct {
	IsAuthentication bool           `json:"is_authentication"`
	IdentitySpec     *identity.Spec `json:"identity_spec"`
	PromotionCode    string         `json:"promotion_code,omitempty"`
	JWT              string         `json:"jwt,omitempty"`
}

func (*NodeUseIdentityAnonymous) DeriveEdges

func (n *NodeUseIdentityAnonymous) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeUseIdentityAnonymous) GetEffects

func (n *NodeUseIdentityAnonymous) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeUseIdentityAnonymous) Prepare

type NodeUseIdentityBiometric

type NodeUseIdentityBiometric struct {
	IsAuthentication bool           `json:"is_authentication"`
	IsCreating       bool           `json:"is_creating"`
	IdentitySpec     *identity.Spec `json:"identity_spec"`
}

func (*NodeUseIdentityBiometric) DeriveEdges

func (n *NodeUseIdentityBiometric) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeUseIdentityBiometric) GetEffects

func (n *NodeUseIdentityBiometric) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeUseIdentityBiometric) Prepare

type NodeUseIdentityLoginID

type NodeUseIdentityLoginID struct {
	IsAuthentication bool                   `json:"is_authentication"`
	Mode             UseIdentityLoginIDMode `json:"mode"`
	IdentitySpec     *identity.Spec         `json:"identity_spec"`
}

func (*NodeUseIdentityLoginID) DeriveEdges

func (n *NodeUseIdentityLoginID) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeUseIdentityLoginID) GetEffects

func (n *NodeUseIdentityLoginID) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeUseIdentityLoginID) Prepare

type NodeUseIdentityOAuthProvider

type NodeUseIdentityOAuthProvider struct {
	IsAuthentication bool                          `json:"is_authentication"`
	IsCreating       bool                          `json:"is_creating"`
	Config           config.OAuthSSOProviderConfig `json:"provider_config"`
	HashedNonce      string                        `json:"hashed_nonce"`
	ErrorRedirectURI string                        `json:"error_redirect_uri"`
	RedirectURI      string                        `json:"redirect_uri"`
}

func (*NodeUseIdentityOAuthProvider) DeriveEdges

func (*NodeUseIdentityOAuthProvider) GetEffects

func (*NodeUseIdentityOAuthProvider) GetErrorRedirectURI

func (n *NodeUseIdentityOAuthProvider) GetErrorRedirectURI() string

GetErrorRedirectURI implements ErrorRedirectURIGetter.

func (*NodeUseIdentityOAuthProvider) GetRedirectURI

func (n *NodeUseIdentityOAuthProvider) GetRedirectURI() string

GetRedirectURI implements RedirectURIGetter.

func (*NodeUseIdentityOAuthProvider) Prepare

type NodeUseIdentityOAuthUserInfo

type NodeUseIdentityOAuthUserInfo struct {
	IsAuthentication bool           `json:"is_authentication"`
	IsCreating       bool           `json:"is_creating"`
	IdentitySpec     *identity.Spec `json:"identity_spec"`
}

func (*NodeUseIdentityOAuthUserInfo) DeriveEdges

func (*NodeUseIdentityOAuthUserInfo) GetEffects

func (*NodeUseIdentityOAuthUserInfo) Prepare

type NodeUseIdentityPasskey

type NodeUseIdentityPasskey struct {
	IsAuthentication bool           `json:"is_authentication"`
	IdentitySpec     *identity.Spec `json:"identity_spec"`
}

func (*NodeUseIdentityPasskey) DeriveEdges

func (n *NodeUseIdentityPasskey) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeUseIdentityPasskey) GetEffects

func (n *NodeUseIdentityPasskey) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeUseIdentityPasskey) Prepare

type NodeUseIdentitySIWE

type NodeUseIdentitySIWE struct {
	IsAuthentication bool           `json:"is_authentication"`
	IdentitySpec     *identity.Spec `json:"identity_spec"`
}

func (*NodeUseIdentitySIWE) DeriveEdges

func (n *NodeUseIdentitySIWE) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeUseIdentitySIWE) GetEffects

func (n *NodeUseIdentitySIWE) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeUseIdentitySIWE) Prepare

func (n *NodeUseIdentitySIWE) Prepare(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) error

type NodeValidateUser

type NodeValidateUser struct {
	Error *apierrors.APIError `json:"error"`
}

func (*NodeValidateUser) DeriveEdges

func (n *NodeValidateUser) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeValidateUser) GetEffects

func (n *NodeValidateUser) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeValidateUser) Prepare

func (n *NodeValidateUser) Prepare(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) error

type NodeVerifyIdentity

type NodeVerifyIdentity struct {
	Identity        *identity.Info `json:"identity"`
	RequestedByUser bool           `json:"requested_by_user"`

	Channel    string `json:"channel"`
	Target     string `json:"target"`
	CodeLength int    `json:"code_length"`
}

func (*NodeVerifyIdentity) DeriveEdges

func (n *NodeVerifyIdentity) DeriveEdges(goCtx context.Context, graph *interaction.Graph) ([]interaction.Edge, error)

func (*NodeVerifyIdentity) GetEffects

func (n *NodeVerifyIdentity) GetEffects(goCtx context.Context) ([]interaction.Effect, error)

func (*NodeVerifyIdentity) GetRequestedByUser

func (n *NodeVerifyIdentity) GetRequestedByUser() bool

GetVerificationCodeChannel implements VerifyIdentityNode.

func (*NodeVerifyIdentity) GetVerificationCodeChannel

func (n *NodeVerifyIdentity) GetVerificationCodeChannel() string

GetVerificationCodeChannel implements VerifyIdentityNode.

func (*NodeVerifyIdentity) GetVerificationCodeLength

func (n *NodeVerifyIdentity) GetVerificationCodeLength() int

GetVerificationCodeLength implements VerifyIdentityNode.

func (*NodeVerifyIdentity) GetVerificationCodeTarget

func (n *NodeVerifyIdentity) GetVerificationCodeTarget() string

GetVerificationCodeTarget implements VerifyIdentityNode.

func (*NodeVerifyIdentity) GetVerificationIdentity

func (n *NodeVerifyIdentity) GetVerificationIdentity() *identity.Info

GetVerificationIdentity implements VerifyIdentityNode.

func (*NodeVerifyIdentity) Prepare

func (n *NodeVerifyIdentity) Prepare(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) error

func (*NodeVerifyIdentity) SendCode

func (n *NodeVerifyIdentity) SendCode(goCtx context.Context, ctx *interaction.Context, ignoreRatelimitError bool) (*SendOOBCodeResult, error)

type NodeVerifyIdentityViaWhatsapp

type NodeVerifyIdentityViaWhatsapp struct {
	Identity          *identity.Info `json:"identity"`
	RequestedByUser   bool           `json:"requested_by_user"`
	WhatsappOTPLength int            `json:"whatsapp_otp_length"`
	Phone             string         `json:"phone"`
}

func (*NodeVerifyIdentityViaWhatsapp) DeriveEdges

func (*NodeVerifyIdentityViaWhatsapp) GetEffects

func (*NodeVerifyIdentityViaWhatsapp) GetOTPKindFactory

GetOTPKindFactory implements WhatsappOTPNode.

func (*NodeVerifyIdentityViaWhatsapp) GetPhone

func (n *NodeVerifyIdentityViaWhatsapp) GetPhone() string

GetPhone implements WhatsappOTPNode.

func (*NodeVerifyIdentityViaWhatsapp) GetWhatsappOTPLength

func (n *NodeVerifyIdentityViaWhatsapp) GetWhatsappOTPLength() int

GetWhatsappOTPLength implements WhatsappOTPNode.

func (*NodeVerifyIdentityViaWhatsapp) Prepare

type SendOOBCode

type SendOOBCode struct {
	Context              *interaction.Context
	Stage                authn.AuthenticationStage
	IsAuthenticating     bool
	AuthenticatorInfo    *authenticator.Info
	IgnoreRatelimitError bool
	OTPForm              otp.Form
}

func (*SendOOBCode) Do

type SendOOBCodeResult

type SendOOBCodeResult struct {
	Target     string
	Channel    string
	CodeLength int
}

type SendWhatsappCode

type SendWhatsappCode struct {
	KindFactory func(config *config.AppConfig, channel model.AuthenticatorOOBChannel) otp.Kind
	Context     *interaction.Context
	Target      string
	IsResend    bool
}

func NewSendWhatsappCode

func NewSendWhatsappCode(
	ctx *interaction.Context,
	kindFactory func(config *config.AppConfig, channel model.AuthenticatorOOBChannel) otp.Kind,
	target string,
	isResend bool) *SendWhatsappCode

func (*SendWhatsappCode) Do

type SendWhatsappCodeResult

type SendWhatsappCodeResult struct {
	Target     string
	CodeLength int
	Kind       otp.Kind
}

type UseIdentityLoginIDMode

type UseIdentityLoginIDMode string

Source Files

Jump to

Keyboard shortcuts

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