events

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SessionIssued         semconv.Event = "SessionIssued"
	SessionChanged        semconv.Event = "SessionChanged"
	SessionRevoked        semconv.Event = "SessionRevoked"
	SessionChecked        semconv.Event = "SessionChecked"
	SessionTokenizedAsJWT semconv.Event = "SessionTokenizedAsJWT"
	RegistrationFailed    semconv.Event = "RegistrationFailed"
	RegistrationSucceeded semconv.Event = "RegistrationSucceeded"
	LoginFailed           semconv.Event = "LoginFailed"
	LoginSucceeded        semconv.Event = "LoginSucceeded"
	SettingsFailed        semconv.Event = "SettingsFailed"
	SettingsSucceeded     semconv.Event = "SettingsSucceeded"
	RecoveryFailed        semconv.Event = "RecoveryFailed"
	RecoverySucceeded     semconv.Event = "RecoverySucceeded"
	VerificationFailed    semconv.Event = "VerificationFailed"
	VerificationSucceeded semconv.Event = "VerificationSucceeded"
	IdentityCreated       semconv.Event = "IdentityCreated"
	IdentityUpdated       semconv.Event = "IdentityUpdated"
	WebhookDelivered      semconv.Event = "WebhookDelivered"
	WebhookSucceeded      semconv.Event = "WebhookSucceeded"
	WebhookFailed         semconv.Event = "WebhookFailed"
)

Variables

This section is empty.

Functions

func NewIdentityCreated

func NewIdentityCreated(ctx context.Context, identityID uuid.UUID) (string, trace.EventOption)

func NewIdentityUpdated

func NewIdentityUpdated(ctx context.Context, identityID uuid.UUID) (string, trace.EventOption)

func NewLoginFailed

func NewLoginFailed(ctx context.Context, flowType string, requestedAAL string, isRefresh bool) (string, trace.EventOption)

func NewLoginSucceeded

func NewLoginSucceeded(ctx context.Context, o *LoginSucceededOpts) (string, trace.EventOption)

func NewRecoveryFailed

func NewRecoveryFailed(ctx context.Context, flowType string, method string) (string, trace.EventOption)

func NewRecoverySucceeded

func NewRecoverySucceeded(ctx context.Context, identityID uuid.UUID, flowType string, method string) (string, trace.EventOption)

func NewRegistrationFailed

func NewRegistrationFailed(ctx context.Context, flowType string, method string) (string, trace.EventOption)

func NewRegistrationSucceeded

func NewRegistrationSucceeded(ctx context.Context, identityID uuid.UUID, flowType string, method, provider string) (string, trace.EventOption)

func NewSessionChanged

func NewSessionChanged(ctx context.Context, aal string, sessionID, identityID uuid.UUID) (string, trace.EventOption)

func NewSessionChecked added in v1.1.0

func NewSessionChecked(ctx context.Context, sessionID, identityID uuid.UUID) (string, trace.EventOption)

func NewSessionIssued

func NewSessionIssued(ctx context.Context, aal string, sessionID, identityID uuid.UUID) (string, trace.EventOption)

func NewSessionJWTIssued added in v1.1.0

func NewSessionJWTIssued(ctx context.Context, sessionID, identityID uuid.UUID, ttl time.Duration) (string, trace.EventOption)

func NewSessionRevoked

func NewSessionRevoked(ctx context.Context, sessionID, identityID uuid.UUID) (string, trace.EventOption)

func NewSettingsFailed

func NewSettingsFailed(ctx context.Context, flowType string, method string) (string, trace.EventOption)

func NewSettingsSucceeded

func NewSettingsSucceeded(ctx context.Context, identityID uuid.UUID, flowType string, method string) (string, trace.EventOption)

func NewVerificationFailed

func NewVerificationFailed(ctx context.Context, flowType string, method string) (string, trace.EventOption)

func NewVerificationSucceeded

func NewVerificationSucceeded(ctx context.Context, identityID uuid.UUID, flowType string, method string) (string, trace.EventOption)

func NewWebhookDelivered added in v1.1.0

func NewWebhookDelivered(ctx context.Context, URL *url.URL, reqBody []byte, status int, resBody []byte, attempt int, requestID uuid.UUID) (string, trace.EventOption)

func NewWebhookFailed added in v1.1.0

func NewWebhookFailed(ctx context.Context, err error) (string, trace.EventOption)

func NewWebhookSucceeded added in v1.1.0

func NewWebhookSucceeded(ctx context.Context) (string, trace.EventOption)

Types

type LoginSucceededOpts

type LoginSucceededOpts struct {
	SessionID, IdentityID                       uuid.UUID
	FlowType, RequestedAAL, Method, SSOProvider string
	IsRefresh                                   bool
}

Jump to

Keyboard shortcuts

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