latte

package
v0.0.0-...-fa26777 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 34 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountEnumerationPerIPRateLimitBucketSpec = interaction.AccountEnumerationPerIPRateLimitBucketSpec
View Source
var ErrNoMatchingLoginIDForForgotPasswordChannel = errors.New("no matching login id for selected forgot password channel")
View Source
var InputChangePasswordSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false,
		"properties": {
			"old_password": { "type": "string" },
			"new_password": { "type": "string" }
		},
		"required": ["old_password", "new_password"]
	}
`)
View Source
var InputCheckLoginLinkVerifiedSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var InputResendOOBOTPCodeSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var InputSelectAuthenticatorTypeSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false,
		"properties": {
			"authenticator_type": {
				"type": "string",
				"enum": ["password", "oob_otp_email"]
			}
		},
		"required": ["authenticator_type"]
	}
`)
View Source
var InputSelectClaimSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false,
		"properties": {
			"claim_name": { "type": "string" },
			"claim_value": { "type": "string" }
		},
		"required": ["claim_name", "claim_value"]
	}
`)
View Source
var InputSendForgotPasswordCodeSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var InputTakeCaptchaTokenSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false,
		"properties": {
			"token": { "type": "string" }
		},
		"required": ["token"]
	}
`)
View Source
var InputTakeCodeSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false,
		"properties": {
			"code": { "type": "string" }
		},
		"required": ["code"]
	}
`)
View Source
var InputTakeCurrentLoginIDSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false,
		"properties": {
			"login_id": { "type": "string" }
		},
		"required": ["login_id"]
	}
`)
View Source
var InputTakeForgotPasswordChannelSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false,
		"properties": {
			"channel": {
				"type": "string",
				"enum": ["email", "sms"]
			}
		},
		"required": ["channel"]
	}
`)
View Source
var InputTakeLoginIDSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false,
		"properties": {
			"login_id": { "type": "string" }
		},
		"required": ["login_id"]
	}
`)
View Source
var InputTakeLoginLinkCodeSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false,
		"properties": {
			"code": { "type": "string" }
		},
		"required": ["code"]
	}
`)
View Source
var InputTakeMigrationTokenSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false,
		"properties": {
			"migration_token": { "type": "string" }
		},
		"required": ["migration_token"]
	}
`)
View Source
var InputTakeNewPasswordSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false,
		"properties": {
			"new_password": { "type": "string" }
		},
		"required": ["new_password"]
	}
`)
View Source
var InputTakeOOBOTPCodeSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false,
		"properties": {
			"code": { "type": "string" }
		},
		"required": ["code"]
	}
`)
View Source
var InputTakePasswordSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false,
		"properties": {
			"password": { "type": "string" }
		},
		"required": ["password"]
	}
`)
View Source
var IntentAuthenticateEmailLoginLinkSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentAuthenticateOOBOTPPhoneSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentAuthenticatePasswordSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentAuthenticateSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var IntentChangeEmailSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var IntentChangePasswordSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var IntentCreateLoginIDSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentCreateOOBOTPAuthenticatorForLoginIDSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentCreatePasswordSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentEnsureSessionSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentFindVerifyIdentitySchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false,
		"properties": {
			"user_id": { "type": "string" }
		},
		"required": ["user_id"]
	}
`)
View Source
var IntentForgotPasswordSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var IntentForgotPasswordV2Schema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var IntentLoginSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentMigrateAccountSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentMigrateAuthenticatorsSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentMigrateIdentitiesSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentMigrateLoginIDSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentMigrateOOBOTPAuthenticatorSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentMigrateSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var IntentProtectedAuthenticateSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var IntentReauthForgotPasswordSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var IntentReauthenticateSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var IntentResetPasswordSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var IntentSignupSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var IntentVerifyCaptchaSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentVerifyIdentitySchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentVerifyLoginLinkSchema = validation.NewSimpleSchema(`{}`)
View Source
var IntentVerifyUserSchema = validation.NewSimpleSchema(`
	{
		"type": "object",
		"additionalProperties": false
	}
`)
View Source
var SignupPerIPRateLimitBucketSpec = interaction.SignupPerIPRateLimitBucketSpec

Functions

func GetAMR

func GetAMR(w *workflow.Workflow) []string

Types

type AMRGetter

type AMRGetter interface {
	workflow.Intent
	GetAMR(w *workflow.Workflow) []string
}

type CaptchaProtectedIntent

type CaptchaProtectedIntent struct {
	IsCaptchaProtected bool `json:"is_captcha_protected,omitempty"`
}

type EnsureSessionMode

type EnsureSessionMode string
const (
	EnsureSessionModeDefault        EnsureSessionMode = ""
	EnsureSessionModeCreate         EnsureSessionMode = "create"
	EnsureSessionModeUpdateOrCreate EnsureSessionMode = "update_or_create"
	EnsureSessionModeNoop           EnsureSessionMode = "noop"
)

type ForgotPasswordChannel

type ForgotPasswordChannel string
const (
	ForgotPasswordChannelEmail ForgotPasswordChannel = "email"
	ForgotPasswordChannelSMS   ForgotPasswordChannel = "sms"
)

type InputChangePassword

type InputChangePassword struct {
	OldPassword string `json:"old_password"`
	NewPassword string `json:"new_password"`
}

func (*InputChangePassword) GetNewPassword

func (i *InputChangePassword) GetNewPassword() string

func (*InputChangePassword) GetOldPassword

func (i *InputChangePassword) GetOldPassword() string

func (*InputChangePassword) JSONSchema

func (*InputChangePassword) Kind

func (*InputChangePassword) Kind() string

type InputCheckLoginLinkVerified

type InputCheckLoginLinkVerified struct {
}

func (*InputCheckLoginLinkVerified) CheckLoginLinkVerified

func (i *InputCheckLoginLinkVerified) CheckLoginLinkVerified()

func (*InputCheckLoginLinkVerified) JSONSchema

func (*InputCheckLoginLinkVerified) Kind

type InputResendOOBOTPCode

type InputResendOOBOTPCode struct{}

func (*InputResendOOBOTPCode) DoResend

func (i *InputResendOOBOTPCode) DoResend()

func (*InputResendOOBOTPCode) JSONSchema

func (*InputResendOOBOTPCode) Kind

func (*InputResendOOBOTPCode) Kind() string

type InputSelectAuthenticatorType

type InputSelectAuthenticatorType struct {
	AuthenticatorType model.AuthenticatorType `json:"authenticator_type"`
}

func (*InputSelectAuthenticatorType) GetAuthenticatorType

func (i *InputSelectAuthenticatorType) GetAuthenticatorType() model.AuthenticatorType

func (*InputSelectAuthenticatorType) JSONSchema

func (*InputSelectAuthenticatorType) Kind

type InputSelectClaim

type InputSelectClaim struct {
	ClaimName  string `json:"claim_name"`
	ClaimValue string `json:"claim_value"`
}

func (*InputSelectClaim) JSONSchema

func (*InputSelectClaim) JSONSchema() *validation.SimpleSchema

func (*InputSelectClaim) Kind

func (*InputSelectClaim) Kind() string

func (*InputSelectClaim) NameValue

func (i *InputSelectClaim) NameValue() (name string, value string)

type InputSendForgotPasswordCode

type InputSendForgotPasswordCode struct{}

func (*InputSendForgotPasswordCode) DoSend

func (i *InputSendForgotPasswordCode) DoSend()

func (*InputSendForgotPasswordCode) JSONSchema

func (*InputSendForgotPasswordCode) Kind

type InputTakeCaptchaToken

type InputTakeCaptchaToken struct {
	Token string `json:"token"`
}

func (*InputTakeCaptchaToken) GetToken

func (i *InputTakeCaptchaToken) GetToken() string

func (*InputTakeCaptchaToken) JSONSchema

func (*InputTakeCaptchaToken) Kind

func (*InputTakeCaptchaToken) Kind() string

type InputTakeCode

type InputTakeCode struct {
	Code string `json:"code"`
}

func (*InputTakeCode) GetCode

func (i *InputTakeCode) GetCode() string

func (*InputTakeCode) JSONSchema

func (*InputTakeCode) JSONSchema() *validation.SimpleSchema

func (*InputTakeCode) Kind

func (*InputTakeCode) Kind() string

type InputTakeCurrentLoginID

type InputTakeCurrentLoginID struct {
	CurrentLoginID string `json:"login_id"`
}

func (*InputTakeCurrentLoginID) GetCurrentLoginID

func (i *InputTakeCurrentLoginID) GetCurrentLoginID() string

func (*InputTakeCurrentLoginID) JSONSchema

func (*InputTakeCurrentLoginID) Kind

type InputTakeForgotPasswordChannel

type InputTakeForgotPasswordChannel struct {
	Channel ForgotPasswordChannel `json:"channel"`
}

func (*InputTakeForgotPasswordChannel) GetForgotPasswordChannel

func (i *InputTakeForgotPasswordChannel) GetForgotPasswordChannel() ForgotPasswordChannel

func (*InputTakeForgotPasswordChannel) JSONSchema

func (*InputTakeForgotPasswordChannel) Kind

type InputTakeLoginID

type InputTakeLoginID struct {
	LoginID string `json:"login_id"`
}

func (*InputTakeLoginID) GetLoginID

func (i *InputTakeLoginID) GetLoginID() string

func (*InputTakeLoginID) JSONSchema

func (*InputTakeLoginID) JSONSchema() *validation.SimpleSchema

func (*InputTakeLoginID) Kind

func (*InputTakeLoginID) Kind() string

type InputTakeLoginLinkCode

type InputTakeLoginLinkCode struct {
	Code string `json:"code"`
}

func (*InputTakeLoginLinkCode) GetCode

func (i *InputTakeLoginLinkCode) GetCode() string

func (*InputTakeLoginLinkCode) JSONSchema

func (*InputTakeLoginLinkCode) Kind

type InputTakeMigrationToken

type InputTakeMigrationToken struct {
	MigrationToken string `json:"migration_token"`
}

func (*InputTakeMigrationToken) GetMigrationToken

func (i *InputTakeMigrationToken) GetMigrationToken() string

func (*InputTakeMigrationToken) JSONSchema

func (*InputTakeMigrationToken) Kind

type InputTakeNewPassword

type InputTakeNewPassword struct {
	NewPassword string `json:"new_password"`
}

func (*InputTakeNewPassword) GetNewPassword

func (i *InputTakeNewPassword) GetNewPassword() string

func (*InputTakeNewPassword) JSONSchema

func (*InputTakeNewPassword) Kind

func (*InputTakeNewPassword) Kind() string

type InputTakeOOBOTPCode

type InputTakeOOBOTPCode struct {
	Code string `json:"code"`
}

func (*InputTakeOOBOTPCode) GetCode

func (i *InputTakeOOBOTPCode) GetCode() string

func (*InputTakeOOBOTPCode) JSONSchema

func (*InputTakeOOBOTPCode) Kind

func (*InputTakeOOBOTPCode) Kind() string

type InputTakePassword

type InputTakePassword struct {
	Password string `json:"password"`
}

func (*InputTakePassword) GetPassword

func (i *InputTakePassword) GetPassword() string

func (*InputTakePassword) JSONSchema

func (*InputTakePassword) JSONSchema() *validation.SimpleSchema

func (*InputTakePassword) Kind

func (*InputTakePassword) Kind() string

type IntentAuthenticate

type IntentAuthenticate struct {
	CaptchaProtectedIntent
}

func (*IntentAuthenticate) CanReactTo

func (*IntentAuthenticate) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*IntentAuthenticate) GetEffects

func (*IntentAuthenticate) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentAuthenticate) JSONSchema

func (*IntentAuthenticate) Kind

func (*IntentAuthenticate) Kind() string

func (*IntentAuthenticate) OutputData

func (*IntentAuthenticate) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentAuthenticate) ReactTo

type IntentAuthenticateEmailLoginLink struct {
	Authenticator *authenticator.Info `json:"authenticator,omitempty"`
}

func (*IntentAuthenticateEmailLoginLink) CanReactTo

func (*IntentAuthenticateEmailLoginLink) GetAMR

func (*IntentAuthenticateEmailLoginLink) GetEffects

func (i *IntentAuthenticateEmailLoginLink) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentAuthenticateEmailLoginLink) JSONSchema

func (*IntentAuthenticateEmailLoginLink) Kind

func (*IntentAuthenticateEmailLoginLink) OutputData

func (i *IntentAuthenticateEmailLoginLink) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentAuthenticateEmailLoginLink) ReactTo

type IntentAuthenticateOOBOTPPhone

type IntentAuthenticateOOBOTPPhone struct {
	CaptchaProtectedIntent
	Authenticator *authenticator.Info `json:"authenticator,omitempty"`
}

func (*IntentAuthenticateOOBOTPPhone) CanReactTo

func (*IntentAuthenticateOOBOTPPhone) GetAMR

func (*IntentAuthenticateOOBOTPPhone) GetEffects

func (i *IntentAuthenticateOOBOTPPhone) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentAuthenticateOOBOTPPhone) JSONSchema

func (*IntentAuthenticateOOBOTPPhone) Kind

func (*IntentAuthenticateOOBOTPPhone) OutputData

func (i *IntentAuthenticateOOBOTPPhone) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentAuthenticateOOBOTPPhone) ReactTo

type IntentAuthenticatePassword

type IntentAuthenticatePassword struct {
	UserID            string             `json:"user_id,omitempty"`
	AuthenticatorKind authenticator.Kind `json:"authenticator_kind,omitempty"`
}

func (*IntentAuthenticatePassword) CanReactTo

func (*IntentAuthenticatePassword) GetAMR

func (*IntentAuthenticatePassword) GetEffects

func (i *IntentAuthenticatePassword) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentAuthenticatePassword) JSONSchema

func (*IntentAuthenticatePassword) Kind

func (*IntentAuthenticatePassword) OutputData

func (i *IntentAuthenticatePassword) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentAuthenticatePassword) ReactTo

type IntentChangeEmail

type IntentChangeEmail struct {
}

func (*IntentChangeEmail) CanReactTo

func (*IntentChangeEmail) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*IntentChangeEmail) GetEffects

func (i *IntentChangeEmail) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentChangeEmail) JSONSchema

func (*IntentChangeEmail) JSONSchema() *validation.SimpleSchema

func (*IntentChangeEmail) Kind

func (*IntentChangeEmail) Kind() string

func (*IntentChangeEmail) OutputData

func (i *IntentChangeEmail) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentChangeEmail) ReactTo

type IntentChangePassword

type IntentChangePassword struct {
}

func (*IntentChangePassword) CanReactTo

func (*IntentChangePassword) GetEffects

func (i *IntentChangePassword) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentChangePassword) JSONSchema

func (*IntentChangePassword) Kind

func (*IntentChangePassword) Kind() string

func (*IntentChangePassword) OutputData

func (i *IntentChangePassword) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentChangePassword) ReactTo

type IntentCreateLoginID

type IntentCreateLoginID struct {
	CaptchaProtectedIntent
	UserID      string               `json:"user_id"`
	LoginIDType model.LoginIDKeyType `json:"login_id_type"`
	LoginIDKey  string               `json:"login_id_key"`
}

func (*IntentCreateLoginID) CanReactTo

func (*IntentCreateLoginID) GetEffects

func (*IntentCreateLoginID) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentCreateLoginID) GetNewAuthenticators

func (*IntentCreateLoginID) GetNewAuthenticators(w *workflow.Workflow) ([]*authenticator.Info, bool)

func (*IntentCreateLoginID) GetNewIdentities

func (*IntentCreateLoginID) GetNewIdentities(w *workflow.Workflow) ([]*identity.Info, bool)

func (*IntentCreateLoginID) JSONSchema

func (*IntentCreateLoginID) Kind

func (*IntentCreateLoginID) Kind() string

func (*IntentCreateLoginID) OutputData

func (*IntentCreateLoginID) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentCreateLoginID) ReactTo

type IntentCreateOOBOTPAuthenticatorForLoginID

type IntentCreateOOBOTPAuthenticatorForLoginID struct {
	Identity               *identity.Info `json:"identity_info,omitempty"`
	AuthenticatorIsDefault bool           `json:"authenticator_is_default"`
}

func (*IntentCreateOOBOTPAuthenticatorForLoginID) CanReactTo

func (*IntentCreateOOBOTPAuthenticatorForLoginID) GetEffects

func (*IntentCreateOOBOTPAuthenticatorForLoginID) GetNewAuthenticators

func (*IntentCreateOOBOTPAuthenticatorForLoginID) JSONSchema

func (*IntentCreateOOBOTPAuthenticatorForLoginID) Kind

func (*IntentCreateOOBOTPAuthenticatorForLoginID) OutputData

func (*IntentCreateOOBOTPAuthenticatorForLoginID) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentCreateOOBOTPAuthenticatorForLoginID) ReactTo

type IntentCreatePassword

type IntentCreatePassword struct {
	UserID                 string             `json:"user_id"`
	AuthenticatorKind      authenticator.Kind `json:"authenticator_kind"`
	AuthenticatorIsDefault bool               `json:"authenticator_is_default"`
}

func (*IntentCreatePassword) CanReactTo

func (*IntentCreatePassword) GetEffects

func (*IntentCreatePassword) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentCreatePassword) JSONSchema

func (*IntentCreatePassword) Kind

func (*IntentCreatePassword) Kind() string

func (*IntentCreatePassword) OutputData

func (*IntentCreatePassword) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentCreatePassword) ReactTo

type IntentEnsureSession

type IntentEnsureSession struct {
	UserID       string               `json:"user_id"`
	CreateReason session.CreateReason `json:"create_reason"`
	AMR          []string             `json:"amr,omitempty"`
	Mode         EnsureSessionMode    `json:"mode"`
}

func (*IntentEnsureSession) CanReactTo

func (*IntentEnsureSession) GetEffects

func (*IntentEnsureSession) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentEnsureSession) GetSession

func (*IntentEnsureSession) JSONSchema

func (*IntentEnsureSession) Kind

func (*IntentEnsureSession) Kind() string

func (*IntentEnsureSession) OutputData

func (*IntentEnsureSession) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentEnsureSession) ReactTo

type IntentFindVerifyIdentity

type IntentFindVerifyIdentity struct {
	UserID string `json:"user_id"`
}

func (*IntentFindVerifyIdentity) CanReactTo

func (*IntentFindVerifyIdentity) GetEffects

func (*IntentFindVerifyIdentity) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentFindVerifyIdentity) JSONSchema

func (*IntentFindVerifyIdentity) Kind

func (*IntentFindVerifyIdentity) OutputData

func (i *IntentFindVerifyIdentity) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentFindVerifyIdentity) ReactTo

func (*IntentFindVerifyIdentity) VerifiedIdentity

type IntentForgotPassword

type IntentForgotPassword struct {
}

func (*IntentForgotPassword) CanReactTo

func (*IntentForgotPassword) GetEffects

func (*IntentForgotPassword) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentForgotPassword) JSONSchema

func (*IntentForgotPassword) Kind

func (*IntentForgotPassword) Kind() string

func (*IntentForgotPassword) OutputData

func (*IntentForgotPassword) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentForgotPassword) ReactTo

type IntentForgotPasswordV2

type IntentForgotPasswordV2 struct {
}

func (*IntentForgotPasswordV2) CanReactTo

func (*IntentForgotPasswordV2) GetEffects

func (*IntentForgotPasswordV2) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentForgotPasswordV2) JSONSchema

func (*IntentForgotPasswordV2) Kind

func (*IntentForgotPasswordV2) OutputData

func (*IntentForgotPasswordV2) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentForgotPasswordV2) ReactTo

type IntentLogin

type IntentLogin struct {
	CaptchaProtectedIntent
	Identity *identity.Info `json:"identity,omitempty"`
}

func (*IntentLogin) CanReactTo

func (*IntentLogin) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*IntentLogin) GetEffects

func (i *IntentLogin) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentLogin) JSONSchema

func (*IntentLogin) JSONSchema() *validation.SimpleSchema

func (*IntentLogin) Kind

func (*IntentLogin) Kind() string

func (*IntentLogin) OutputData

func (i *IntentLogin) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentLogin) ReactTo

func (i *IntentLogin) ReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows, input workflow.Input) (*workflow.Node, error)

type IntentMigrate

type IntentMigrate struct{}

func (*IntentMigrate) CanReactTo

func (*IntentMigrate) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*IntentMigrate) GetEffects

func (i *IntentMigrate) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentMigrate) JSONSchema

func (*IntentMigrate) JSONSchema() *validation.SimpleSchema

func (*IntentMigrate) Kind

func (*IntentMigrate) Kind() string

func (*IntentMigrate) OutputData

func (*IntentMigrate) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentMigrate) ReactTo

func (i *IntentMigrate) ReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows, input workflow.Input) (*workflow.Node, error)

type IntentMigrateAccount

type IntentMigrateAccount struct {
	UseID string `json:"user_id"`
}

func (*IntentMigrateAccount) CanReactTo

func (*IntentMigrateAccount) GetEffects

func (i *IntentMigrateAccount) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentMigrateAccount) GetNewAuthenticators

func (*IntentMigrateAccount) GetNewAuthenticators(w *workflow.Workflow) ([]*authenticator.Info, bool)

func (*IntentMigrateAccount) GetNewIdentities

func (*IntentMigrateAccount) GetNewIdentities(w *workflow.Workflow) ([]*identity.Info, bool)

func (*IntentMigrateAccount) JSONSchema

func (*IntentMigrateAccount) Kind

func (*IntentMigrateAccount) Kind() string

func (*IntentMigrateAccount) OutputData

func (*IntentMigrateAccount) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentMigrateAccount) ReactTo

type IntentMigrateAuthenticators

type IntentMigrateAuthenticators struct {
	UserID       string                       `json:"user_id"`
	MigrateSpecs []*authenticator.MigrateSpec `json:"migrate_specs"`
}

func (*IntentMigrateAuthenticators) CanReactTo

func (*IntentMigrateAuthenticators) GetEffects

func (*IntentMigrateAuthenticators) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentMigrateAuthenticators) GetNewAuthenticators

func (*IntentMigrateAuthenticators) GetNewAuthenticators(w *workflow.Workflow) ([]*authenticator.Info, bool)

func (*IntentMigrateAuthenticators) JSONSchema

func (*IntentMigrateAuthenticators) Kind

func (*IntentMigrateAuthenticators) OutputData

func (*IntentMigrateAuthenticators) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentMigrateAuthenticators) ReactTo

type IntentMigrateIdentities

type IntentMigrateIdentities struct {
	UserID       string                  `json:"user_id"`
	MigrateSpecs []*identity.MigrateSpec `json:"migrate_specs"`
}

func (*IntentMigrateIdentities) CanReactTo

func (*IntentMigrateIdentities) GetEffects

func (*IntentMigrateIdentities) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentMigrateIdentities) GetNewIdentities

func (*IntentMigrateIdentities) GetNewIdentities(w *workflow.Workflow) ([]*identity.Info, bool)

func (*IntentMigrateIdentities) JSONSchema

func (*IntentMigrateIdentities) Kind

func (*IntentMigrateIdentities) OutputData

func (*IntentMigrateIdentities) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentMigrateIdentities) ReactTo

type IntentMigrateLoginID

type IntentMigrateLoginID struct {
	UserID      string                `json:"user_id"`
	MigrateSpec *identity.MigrateSpec `json:"migrate_spec"`
}

func (*IntentMigrateLoginID) CanReactTo

func (*IntentMigrateLoginID) GetEffects

func (*IntentMigrateLoginID) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentMigrateLoginID) GetNewIdentities

func (*IntentMigrateLoginID) GetNewIdentities(w *workflow.Workflow) ([]*identity.Info, bool)

func (*IntentMigrateLoginID) JSONSchema

func (*IntentMigrateLoginID) Kind

func (*IntentMigrateLoginID) Kind() string

func (*IntentMigrateLoginID) OutputData

func (*IntentMigrateLoginID) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentMigrateLoginID) ReactTo

type IntentMigrateOOBOTPAuthenticator

type IntentMigrateOOBOTPAuthenticator struct {
	UserID                 string                     `json:"user_id"`
	MigrateSpec            *authenticator.MigrateSpec `json:"migrate_spec"`
	AuthenticatorIsDefault bool                       `json:"authenticator_is_default"`
}

func (*IntentMigrateOOBOTPAuthenticator) CanReactTo

func (*IntentMigrateOOBOTPAuthenticator) GetEffects

func (*IntentMigrateOOBOTPAuthenticator) GetNewAuthenticators

func (*IntentMigrateOOBOTPAuthenticator) GetNewAuthenticators(w *workflow.Workflow) ([]*authenticator.Info, bool)

func (*IntentMigrateOOBOTPAuthenticator) JSONSchema

func (*IntentMigrateOOBOTPAuthenticator) Kind

func (*IntentMigrateOOBOTPAuthenticator) OutputData

func (*IntentMigrateOOBOTPAuthenticator) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentMigrateOOBOTPAuthenticator) ReactTo

type IntentProtectedAuthenticate

type IntentProtectedAuthenticate struct{}

func (*IntentProtectedAuthenticate) CanReactTo

func (*IntentProtectedAuthenticate) GetEffects

func (*IntentProtectedAuthenticate) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentProtectedAuthenticate) JSONSchema

func (*IntentProtectedAuthenticate) Kind

func (*IntentProtectedAuthenticate) OutputData

func (*IntentProtectedAuthenticate) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentProtectedAuthenticate) ReactTo

type IntentReauthForgotPassword

type IntentReauthForgotPassword struct {
}

func (*IntentReauthForgotPassword) CanReactTo

func (*IntentReauthForgotPassword) GetEffects

func (*IntentReauthForgotPassword) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentReauthForgotPassword) JSONSchema

func (*IntentReauthForgotPassword) Kind

func (*IntentReauthForgotPassword) OutputData

func (*IntentReauthForgotPassword) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentReauthForgotPassword) ReactTo

type IntentReauthenticate

type IntentReauthenticate struct {
}

func (*IntentReauthenticate) CanReactTo

func (*IntentReauthenticate) GetEffects

func (*IntentReauthenticate) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentReauthenticate) JSONSchema

func (*IntentReauthenticate) Kind

func (*IntentReauthenticate) Kind() string

func (*IntentReauthenticate) OutputData

func (*IntentReauthenticate) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentReauthenticate) ReactTo

type IntentResetPassword

type IntentResetPassword struct {
}

func (*IntentResetPassword) CanReactTo

func (*IntentResetPassword) GetEffects

func (*IntentResetPassword) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentResetPassword) JSONSchema

func (*IntentResetPassword) Kind

func (*IntentResetPassword) Kind() string

func (*IntentResetPassword) OutputData

func (*IntentResetPassword) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentResetPassword) ReactTo

type IntentSignup

type IntentSignup struct {
	CaptchaProtectedIntent
}

func (*IntentSignup) CanReactTo

func (*IntentSignup) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*IntentSignup) GetEffects

func (i *IntentSignup) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentSignup) JSONSchema

func (*IntentSignup) JSONSchema() *validation.SimpleSchema

func (*IntentSignup) Kind

func (*IntentSignup) Kind() string

func (*IntentSignup) OutputData

func (*IntentSignup) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentSignup) ReactTo

func (i *IntentSignup) ReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows, input workflow.Input) (*workflow.Node, error)

type IntentVerifyCaptcha

type IntentVerifyCaptcha struct {
}

func (*IntentVerifyCaptcha) CanReactTo

func (*IntentVerifyCaptcha) GetEffects

func (*IntentVerifyCaptcha) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentVerifyCaptcha) JSONSchema

func (*IntentVerifyCaptcha) Kind

func (*IntentVerifyCaptcha) Kind() string

func (*IntentVerifyCaptcha) OutputData

func (i *IntentVerifyCaptcha) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentVerifyCaptcha) ReactTo

type IntentVerifyIdentity

type IntentVerifyIdentity struct {
	CaptchaProtectedIntent
	Identity     *identity.Info `json:"identity,omitempty"`
	IsFromSignUp bool           `json:"is_from_signup"`
}

func (*IntentVerifyIdentity) CanReactTo

func (i *IntentVerifyIdentity) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*IntentVerifyIdentity) GetEffects

func (*IntentVerifyIdentity) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentVerifyIdentity) JSONSchema

func (*IntentVerifyIdentity) Kind

func (*IntentVerifyIdentity) Kind() string

func (*IntentVerifyIdentity) OutputData

func (i *IntentVerifyIdentity) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentVerifyIdentity) ReactTo

func (*IntentVerifyIdentity) VerifiedIdentity

func (i *IntentVerifyIdentity) VerifiedIdentity(w *workflow.Workflow) (*NodeVerifiedIdentity, bool)
type IntentVerifyLoginLink struct{}

func (*IntentVerifyLoginLink) CanReactTo

func (i *IntentVerifyLoginLink) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*IntentVerifyLoginLink) GetEffects

func (i *IntentVerifyLoginLink) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentVerifyLoginLink) JSONSchema

func (*IntentVerifyLoginLink) Kind

func (i *IntentVerifyLoginLink) Kind() string

func (*IntentVerifyLoginLink) OutputData

func (i *IntentVerifyLoginLink) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentVerifyLoginLink) ReactTo

type IntentVerifyUser

type IntentVerifyUser struct {
}

func (*IntentVerifyUser) CanReactTo

func (*IntentVerifyUser) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*IntentVerifyUser) GetEffects

func (*IntentVerifyUser) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*IntentVerifyUser) JSONSchema

func (*IntentVerifyUser) JSONSchema() *validation.SimpleSchema

func (*IntentVerifyUser) Kind

func (*IntentVerifyUser) Kind() string

func (*IntentVerifyUser) OutputData

func (i *IntentVerifyUser) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*IntentVerifyUser) ReactTo

type NewAuthenticatorGetter

type NewAuthenticatorGetter interface {
	workflow.Intent
	GetNewAuthenticators(w *workflow.Workflow) ([]*authenticator.Info, bool)
}

type NewIdentityGetter

type NewIdentityGetter interface {
	workflow.Intent
	GetNewIdentities(w *workflow.Workflow) ([]*identity.Info, bool)
}
type NodeAuthenticateEmailLoginLink struct {
	Authenticator *authenticator.Info `json:"authenticator,omitempty"`
}

func (*NodeAuthenticateEmailLoginLink) CanReactTo

func (*NodeAuthenticateEmailLoginLink) GetEffects

func (n *NodeAuthenticateEmailLoginLink) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeAuthenticateEmailLoginLink) Kind

func (*NodeAuthenticateEmailLoginLink) OutputData

func (n *NodeAuthenticateEmailLoginLink) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeAuthenticateEmailLoginLink) ReactTo

type NodeAuthenticateOOBOTPPhone

type NodeAuthenticateOOBOTPPhone struct {
	Authenticator *authenticator.Info `json:"authenticator,omitempty"`
}

func (*NodeAuthenticateOOBOTPPhone) CanReactTo

func (*NodeAuthenticateOOBOTPPhone) GetEffects

func (n *NodeAuthenticateOOBOTPPhone) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeAuthenticateOOBOTPPhone) Kind

func (*NodeAuthenticateOOBOTPPhone) OutputData

func (n *NodeAuthenticateOOBOTPPhone) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeAuthenticateOOBOTPPhone) ReactTo

type NodeAuthenticatePassword

type NodeAuthenticatePassword struct {
	UserID            string             `json:"user_id,omitempty"`
	AuthenticatorKind authenticator.Kind `json:"authenticator_kind,omitempty"`
}

func (*NodeAuthenticatePassword) CanReactTo

func (*NodeAuthenticatePassword) GetEffects

func (n *NodeAuthenticatePassword) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeAuthenticatePassword) Kind

func (n *NodeAuthenticatePassword) Kind() string

func (*NodeAuthenticatePassword) OutputData

func (n *NodeAuthenticatePassword) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeAuthenticatePassword) ReactTo

type NodeChangeEmail

type NodeChangeEmail struct {
	UserID               string         `json:"user_id,omitempty"`
	IdentityBeforeUpdate *identity.Info `json:"identity_before_update,omitempty"`
}

func (*NodeChangeEmail) CanReactTo

func (n *NodeChangeEmail) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*NodeChangeEmail) GetEffects

func (n *NodeChangeEmail) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeChangeEmail) Kind

func (n *NodeChangeEmail) Kind() string

func (*NodeChangeEmail) OutputData

func (n *NodeChangeEmail) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeChangeEmail) ReactTo

func (n *NodeChangeEmail) ReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows, input workflow.Input) (*workflow.Node, error)

type NodeChangePassword

type NodeChangePassword struct {
	UserID            string             `json:"user_id,omitempty"`
	AuthenticatorKind authenticator.Kind `json:"authenticator_kind,omitempty"`
}

func (*NodeChangePassword) CanReactTo

func (n *NodeChangePassword) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*NodeChangePassword) GetEffects

func (n *NodeChangePassword) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeChangePassword) Kind

func (n *NodeChangePassword) Kind() string

func (*NodeChangePassword) OutputData

func (n *NodeChangePassword) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeChangePassword) ReactTo

type NodeChangePasswordEnd

type NodeChangePasswordEnd struct {
}

func (*NodeChangePasswordEnd) CanReactTo

func (n *NodeChangePasswordEnd) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*NodeChangePasswordEnd) GetEffects

func (n *NodeChangePasswordEnd) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeChangePasswordEnd) Kind

func (n *NodeChangePasswordEnd) Kind() string

func (*NodeChangePasswordEnd) OutputData

func (n *NodeChangePasswordEnd) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeChangePasswordEnd) ReactTo

type NodeDoCreateAuthenticator

type NodeDoCreateAuthenticator struct {
	Authenticator *authenticator.Info `json:"authenticator,omitempty"`
}

func (*NodeDoCreateAuthenticator) CanReactTo

func (*NodeDoCreateAuthenticator) GetEffects

func (n *NodeDoCreateAuthenticator) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeDoCreateAuthenticator) Kind

func (*NodeDoCreateAuthenticator) OutputData

func (*NodeDoCreateAuthenticator) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeDoCreateAuthenticator) ReactTo

type NodeDoCreateIdentity

type NodeDoCreateIdentity struct {
	Identity *identity.Info `json:"identity,omitempty"`
}

func (*NodeDoCreateIdentity) CanReactTo

func (*NodeDoCreateIdentity) GetEffects

func (n *NodeDoCreateIdentity) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeDoCreateIdentity) Kind

func (n *NodeDoCreateIdentity) Kind() string

func (*NodeDoCreateIdentity) OutputData

func (n *NodeDoCreateIdentity) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeDoCreateIdentity) ReactTo

type NodeDoCreateUser

type NodeDoCreateUser struct {
	UserID string `json:"user_id"`
}

func (*NodeDoCreateUser) CanReactTo

func (*NodeDoCreateUser) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*NodeDoCreateUser) GetEffects

func (n *NodeDoCreateUser) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeDoCreateUser) Kind

func (n *NodeDoCreateUser) Kind() string

func (*NodeDoCreateUser) OutputData

func (n *NodeDoCreateUser) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeDoCreateUser) ReactTo

type NodeDoEnsureSession

type NodeDoEnsureSession struct {
	UserID                  string                    `json:"user_id"`
	CreateReason            session.CreateReason      `json:"create_reason"`
	SessionToCreate         *idpsession.IDPSession    `json:"session_to_create,omitempty"`
	AuthenticationInfoEntry *authenticationinfo.Entry `json:"authentication_info_entry,omitempty"`
	SessionCookie           *http.Cookie              `json:"session_cookie,omitempty"`
	UpdateSessionID         string                    `json:"update_session_id,omitempty"`
	UpdateSessionAMR        []string                  `json:"update_session_amr,omitempty"`
	SameSiteStrictCookie    *http.Cookie              `json:"same_site_strict_cookie,omitempty"`
}

func (*NodeDoEnsureSession) CanReactTo

func (*NodeDoEnsureSession) GetAuthenticationInfoEntry

func (n *NodeDoEnsureSession) GetAuthenticationInfoEntry(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) *authenticationinfo.Entry

func (*NodeDoEnsureSession) GetCookies

func (n *NodeDoEnsureSession) GetCookies(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]*http.Cookie, error)

func (*NodeDoEnsureSession) GetEffects

func (n *NodeDoEnsureSession) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeDoEnsureSession) Kind

func (n *NodeDoEnsureSession) Kind() string

func (*NodeDoEnsureSession) OutputData

func (n *NodeDoEnsureSession) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeDoEnsureSession) ReactTo

type NodeDoResetPasswordByCode

type NodeDoResetPasswordByCode struct {
	Code        string `json:"code"`
	NewPassword string `json:"new_password"`
}

func (*NodeDoResetPasswordByCode) CanReactTo

func (*NodeDoResetPasswordByCode) GetEffects

func (n *NodeDoResetPasswordByCode) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeDoResetPasswordByCode) Kind

func (*NodeDoResetPasswordByCode) OutputData

func (n *NodeDoResetPasswordByCode) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeDoResetPasswordByCode) ReactTo

type NodeDoUpdateAuthenticator

type NodeDoUpdateAuthenticator struct {
	Authenticator *authenticator.Info `json:"authenticator,omitempty"`
}

func (*NodeDoUpdateAuthenticator) CanReactTo

func (*NodeDoUpdateAuthenticator) GetEffects

func (n *NodeDoUpdateAuthenticator) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeDoUpdateAuthenticator) Kind

func (*NodeDoUpdateAuthenticator) OutputData

func (*NodeDoUpdateAuthenticator) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeDoUpdateAuthenticator) ReactTo

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) CanReactTo

func (*NodeDoUpdateIdentity) GetEffects

func (n *NodeDoUpdateIdentity) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeDoUpdateIdentity) Kind

func (n *NodeDoUpdateIdentity) Kind() string

func (*NodeDoUpdateIdentity) OutputData

func (n *NodeDoUpdateIdentity) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeDoUpdateIdentity) ReactTo

type NodeForgotPasswordForUser

type NodeForgotPasswordForUser struct {
	LoginID string  `json:"login_id"`
	UserID  *string `json:"user_id"`
}

func (*NodeForgotPasswordForUser) CanReactTo

func (*NodeForgotPasswordForUser) GetEffects

func (n *NodeForgotPasswordForUser) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeForgotPasswordForUser) Kind

func (*NodeForgotPasswordForUser) OutputData

func (*NodeForgotPasswordForUser) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeForgotPasswordForUser) ReactTo

type NodeForgotPasswordWithLoginID

type NodeForgotPasswordWithLoginID struct {
	LoginID string `json:"login_id"`
}

func (*NodeForgotPasswordWithLoginID) CanReactTo

func (*NodeForgotPasswordWithLoginID) GetEffects

func (n *NodeForgotPasswordWithLoginID) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeForgotPasswordWithLoginID) Kind

func (*NodeForgotPasswordWithLoginID) OutputData

func (n *NodeForgotPasswordWithLoginID) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeForgotPasswordWithLoginID) ReactTo

type NodeMigrateAccount

type NodeMigrateAccount struct {
	IdentityMigrateSpecs      []*identity.MigrateSpec      `json:"identity_migrate_specs"`
	AuthenticatorMigrateSpecs []*authenticator.MigrateSpec `json:"authenticator_migrate_specs"`
}

func (*NodeMigrateAccount) CanReactTo

func (*NodeMigrateAccount) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*NodeMigrateAccount) GetEffects

func (n *NodeMigrateAccount) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeMigrateAccount) Kind

func (n *NodeMigrateAccount) Kind() string

func (*NodeMigrateAccount) OutputData

func (n *NodeMigrateAccount) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeMigrateAccount) ReactTo

type NodePopulateStandardAttributes

type NodePopulateStandardAttributes struct {
	Identity *identity.Info `json:"identity,omitempty"`
}

func (*NodePopulateStandardAttributes) CanReactTo

func (*NodePopulateStandardAttributes) GetEffects

func (n *NodePopulateStandardAttributes) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodePopulateStandardAttributes) Kind

func (*NodePopulateStandardAttributes) OutputData

func (n *NodePopulateStandardAttributes) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodePopulateStandardAttributes) ReactTo

type NodeSendForgotPasswordCode

type NodeSendForgotPasswordCode struct {
	LoginID string `json:"login_id"`
}

func (*NodeSendForgotPasswordCode) CanReactTo

func (*NodeSendForgotPasswordCode) GetEffects

func (n *NodeSendForgotPasswordCode) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeSendForgotPasswordCode) Kind

func (*NodeSendForgotPasswordCode) OutputData

func (n *NodeSendForgotPasswordCode) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeSendForgotPasswordCode) ReactTo

type NodeValidatedResetPasswordCode

type NodeValidatedResetPasswordCode struct {
	Code   string `json:"code"`
	UserID string `json:"user_id"`
}

func (*NodeValidatedResetPasswordCode) CanReactTo

func (*NodeValidatedResetPasswordCode) GetEffects

func (n *NodeValidatedResetPasswordCode) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeValidatedResetPasswordCode) Kind

func (*NodeValidatedResetPasswordCode) OutputData

func (n *NodeValidatedResetPasswordCode) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeValidatedResetPasswordCode) ReactTo

type NodeVerifiedAuthenticator

type NodeVerifiedAuthenticator struct {
	Authenticator *authenticator.Info `json:"authenticator,omitempty"`
}

func (*NodeVerifiedAuthenticator) CanReactTo

func (*NodeVerifiedAuthenticator) GetAMR

func (n *NodeVerifiedAuthenticator) GetAMR() []string

func (*NodeVerifiedAuthenticator) GetEffects

func (n *NodeVerifiedAuthenticator) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeVerifiedAuthenticator) GetVerifiedAuthenticationLockoutMethod

func (n *NodeVerifiedAuthenticator) GetVerifiedAuthenticationLockoutMethod() (config.AuthenticationLockoutMethod, bool)

func (*NodeVerifiedAuthenticator) Kind

func (*NodeVerifiedAuthenticator) OutputData

func (n *NodeVerifiedAuthenticator) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeVerifiedAuthenticator) ReactTo

type NodeVerifiedCaptcha

type NodeVerifiedCaptcha struct {
}

func (*NodeVerifiedCaptcha) CanReactTo

func (*NodeVerifiedCaptcha) GetEffects

func (n *NodeVerifiedCaptcha) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeVerifiedCaptcha) Kind

func (n *NodeVerifiedCaptcha) Kind() string

func (*NodeVerifiedCaptcha) OutputData

func (*NodeVerifiedCaptcha) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeVerifiedCaptcha) ReactTo

type NodeVerifiedIdentity

type NodeVerifiedIdentity struct {
	IdentityID       string              `json:"identity_id"`
	NewVerifiedClaim *verification.Claim `json:"verified_claim,omitempty"`
}

func (*NodeVerifiedIdentity) CanReactTo

func (*NodeVerifiedIdentity) GetEffects

func (n *NodeVerifiedIdentity) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeVerifiedIdentity) Kind

func (n *NodeVerifiedIdentity) Kind() string

func (*NodeVerifiedIdentity) OutputData

func (*NodeVerifiedIdentity) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeVerifiedIdentity) ReactTo

type NodeVerifiedLoginLink struct {
}

func (*NodeVerifiedLoginLink) CanReactTo

func (n *NodeVerifiedLoginLink) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*NodeVerifiedLoginLink) GetEffects

func (n *NodeVerifiedLoginLink) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeVerifiedLoginLink) Kind

func (n *NodeVerifiedLoginLink) Kind() string

func (*NodeVerifiedLoginLink) OutputData

func (n *NodeVerifiedLoginLink) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeVerifiedLoginLink) ReactTo

type NodeVerifyEmail

type NodeVerifyEmail struct {
	UserID     string `json:"user_id"`
	IdentityID string `json:"identity_id"`
	Email      string `json:"email"`
}

func (*NodeVerifyEmail) CanReactTo

func (*NodeVerifyEmail) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*NodeVerifyEmail) GetEffects

func (n *NodeVerifyEmail) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeVerifyEmail) Kind

func (n *NodeVerifyEmail) Kind() string

func (*NodeVerifyEmail) OutputData

func (n *NodeVerifyEmail) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeVerifyEmail) ReactTo

func (n *NodeVerifyEmail) ReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows, input workflow.Input) (*workflow.Node, error)

type NodeVerifyPhoneSMS

type NodeVerifyPhoneSMS struct {
	UserID      string `json:"user_id"`
	IdentityID  string `json:"identity_id"`
	PhoneNumber string `json:"phone_number"`
}

func (*NodeVerifyPhoneSMS) CanReactTo

func (*NodeVerifyPhoneSMS) CanReactTo(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) ([]workflow.Input, error)

func (*NodeVerifyPhoneSMS) GetEffects

func (n *NodeVerifyPhoneSMS) GetEffects(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (effs []workflow.Effect, err error)

func (*NodeVerifyPhoneSMS) Kind

func (n *NodeVerifyPhoneSMS) Kind() string

func (*NodeVerifyPhoneSMS) OutputData

func (n *NodeVerifyPhoneSMS) OutputData(ctx context.Context, deps *workflow.Dependencies, workflows workflow.Workflows) (interface{}, error)

func (*NodeVerifyPhoneSMS) ReactTo

type SendOOBCode

type SendOOBCode struct {
	WorkflowID        string
	Deps              *workflow.Dependencies
	Stage             authn.AuthenticationStage
	IsAuthenticating  bool
	AuthenticatorInfo *authenticator.Info
	OTPForm           otp.Form
	IsResend          bool
}

func (*SendOOBCode) Do

func (p *SendOOBCode) Do(ctx context.Context) error

type VerifiedAuthenticationLockoutMethodGetter

type VerifiedAuthenticationLockoutMethodGetter interface {
	GetVerifiedAuthenticationLockoutMethod() (config.AuthenticationLockoutMethod, bool)
}

Source Files

Jump to

Keyboard shortcuts

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