intents

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntentAddAuthenticator

type IntentAddAuthenticator struct {
	UserID            string                    `json:"user_id"`
	Stage             authn.AuthenticationStage `json:"stage"`
	AuthenticatorType model.AuthenticatorType   `json:"authenticator_type"`
}

func (*IntentAddAuthenticator) DeriveEdgesForNode

func (i *IntentAddAuthenticator) DeriveEdgesForNode(goCtx context.Context, graph *interaction.Graph, node interaction.Node) ([]interaction.Edge, error)

func (*IntentAddAuthenticator) InstantiateRootNode

func (i *IntentAddAuthenticator) InstantiateRootNode(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) (interaction.Node, error)

type IntentAddIdentity

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

func NewIntentAddIdentity

func NewIntentAddIdentity(userID string) *IntentAddIdentity

func (*IntentAddIdentity) DeriveEdgesForNode

func (i *IntentAddIdentity) DeriveEdgesForNode(goCtx context.Context, graph *interaction.Graph, node interaction.Node) ([]interaction.Edge, error)

func (*IntentAddIdentity) InstantiateRootNode

func (i *IntentAddIdentity) InstantiateRootNode(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) (interaction.Node, error)

type IntentAuthenticate

type IntentAuthenticate struct {
	Kind                     IntentAuthenticateKind `json:"kind"`
	SuppressIDPSessionCookie bool                   `json:"suppress_idp_session_cookie"`
	UserIDHint               string                 `json:"user_id_hint,omitempty"`
}

func (*IntentAuthenticate) DeriveEdgesForNode

func (i *IntentAuthenticate) DeriveEdgesForNode(goCtx context.Context, graph *interaction.Graph, node interaction.Node) ([]interaction.Edge, error)

nolint: gocognit

func (*IntentAuthenticate) InstantiateRootNode

func (i *IntentAuthenticate) InstantiateRootNode(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) (interaction.Node, error)

type IntentAuthenticateKind

type IntentAuthenticateKind string
const (
	IntentAuthenticateKindLogin   IntentAuthenticateKind = "login"
	IntentAuthenticateKindSignup  IntentAuthenticateKind = "signup"
	IntentAuthenticateKindPromote IntentAuthenticateKind = "promote"
)

type IntentChangePassword

type IntentChangePassword struct {
	UserID string                    `json:"user_id"`
	Stage  authn.AuthenticationStage `json:"stage"`
}

func NewIntentChangePrimaryPassword

func NewIntentChangePrimaryPassword(userID string) *IntentChangePassword

func NewIntentChangeSecondaryPassword

func NewIntentChangeSecondaryPassword(userID string) *IntentChangePassword

func (*IntentChangePassword) DeriveEdgesForNode

func (i *IntentChangePassword) DeriveEdgesForNode(goCtx context.Context, graph *interaction.Graph, node interaction.Node) ([]interaction.Edge, error)

func (*IntentChangePassword) InstantiateRootNode

func (i *IntentChangePassword) InstantiateRootNode(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) (interaction.Node, error)

type IntentForgotPassword

type IntentForgotPassword struct{}

func NewIntentForgotPassword

func NewIntentForgotPassword() *IntentForgotPassword

func (*IntentForgotPassword) DeriveEdgesForNode

func (i *IntentForgotPassword) DeriveEdgesForNode(goCtx context.Context, graph *interaction.Graph, node interaction.Node) ([]interaction.Edge, error)

func (*IntentForgotPassword) InstantiateRootNode

func (i *IntentForgotPassword) InstantiateRootNode(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) (interaction.Node, error)

type IntentReauthenticate

type IntentReauthenticate struct {
	UserIDHint               string `json:"user_id_hint,omitempty"`
	SuppressIDPSessionCookie bool   `json:"suppress_idp_session_cookie"`
}

func (*IntentReauthenticate) DeriveEdgesForNode

func (i *IntentReauthenticate) DeriveEdgesForNode(goCtx context.Context, graph *interaction.Graph, node interaction.Node) ([]interaction.Edge, error)

func (*IntentReauthenticate) InstantiateRootNode

func (i *IntentReauthenticate) InstantiateRootNode(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) (interaction.Node, error)

type IntentRegenerateRecoveryCode

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

func NewIntentRegenerateRecoveryCode

func NewIntentRegenerateRecoveryCode(userID string) *IntentRegenerateRecoveryCode

func (*IntentRegenerateRecoveryCode) DeriveEdgesForNode

func (i *IntentRegenerateRecoveryCode) DeriveEdgesForNode(goCtx context.Context, graph *interaction.Graph, node interaction.Node) ([]interaction.Edge, error)

func (*IntentRegenerateRecoveryCode) InstantiateRootNode

func (i *IntentRegenerateRecoveryCode) InstantiateRootNode(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) (interaction.Node, error)

type IntentRemoveAuthenticator

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

func NewIntentRemoveAuthenticator

func NewIntentRemoveAuthenticator(userID string) *IntentRemoveAuthenticator

func (*IntentRemoveAuthenticator) DeriveEdgesForNode

func (i *IntentRemoveAuthenticator) DeriveEdgesForNode(goCtx context.Context, graph *interaction.Graph, node interaction.Node) ([]interaction.Edge, error)

func (*IntentRemoveAuthenticator) InstantiateRootNode

func (i *IntentRemoveAuthenticator) InstantiateRootNode(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) (interaction.Node, error)

type IntentRemoveIdentity

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

func NewIntentRemoveIdentity

func NewIntentRemoveIdentity(userID string) *IntentRemoveIdentity

func (*IntentRemoveIdentity) DeriveEdgesForNode

func (i *IntentRemoveIdentity) DeriveEdgesForNode(goCtx context.Context, graph *interaction.Graph, node interaction.Node) ([]interaction.Edge, error)

func (*IntentRemoveIdentity) InstantiateRootNode

func (i *IntentRemoveIdentity) InstantiateRootNode(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) (interaction.Node, error)

type IntentResetPassword

type IntentResetPassword struct{}

func NewIntentResetPassword

func NewIntentResetPassword() *IntentResetPassword

func (*IntentResetPassword) DeriveEdgesForNode

func (i *IntentResetPassword) DeriveEdgesForNode(goCtx context.Context, graph *interaction.Graph, node interaction.Node) ([]interaction.Edge, error)

func (*IntentResetPassword) InstantiateRootNode

func (i *IntentResetPassword) InstantiateRootNode(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) (interaction.Node, error)

type IntentUpdateIdentity

type IntentUpdateIdentity struct {
	UserID     string `json:"user_id"`
	IdentityID string `json:"identity_id"`
}

func NewIntentUpdateIdentity

func NewIntentUpdateIdentity(userID string, identityID string) *IntentUpdateIdentity

func (*IntentUpdateIdentity) DeriveEdgesForNode

func (i *IntentUpdateIdentity) DeriveEdgesForNode(goCtx context.Context, graph *interaction.Graph, node interaction.Node) ([]interaction.Edge, error)

func (*IntentUpdateIdentity) InstantiateRootNode

func (i *IntentUpdateIdentity) InstantiateRootNode(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) (interaction.Node, error)

type IntentVerifyIdentity

type IntentVerifyIdentity struct {
	UserID       string             `json:"user_id"`
	IdentityType model.IdentityType `json:"identity_type"`
	IdentityID   string             `json:"identity_id"`
}

func NewIntentVerifyIdentity

func NewIntentVerifyIdentity(userID string, identityType model.IdentityType, identityID string) *IntentVerifyIdentity

func (*IntentVerifyIdentity) DeriveEdgesForNode

func (i *IntentVerifyIdentity) DeriveEdgesForNode(goCtx context.Context, graph *interaction.Graph, node interaction.Node) ([]interaction.Edge, error)

func (*IntentVerifyIdentity) InstantiateRootNode

func (i *IntentVerifyIdentity) InstantiateRootNode(goCtx context.Context, ctx *interaction.Context, graph *interaction.Graph) (interaction.Node, error)

Jump to

Keyboard shortcuts

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