Documentation ¶
Index ¶
Constants ¶
View Source
const ( AccountCreated string = "account_created" AccountActivated string = "account_activated" AccountNotActivated string = "account_not_activated" AccountLocked string = "account_locked" AccountUnlocked string = "account_unlocked" AccountNotUnlocked string = "account_not_unlocked" AccountEnabled string = "account_enabled" AccountDisabled string = "account_disabled" AccountNotEnabled string = "account_not_enabled" AccountDeleted string = "account_deleted" PasswordUpdate string = "password_update" PasswordResetReq string = "password_reset_request" )
Account Events
View Source
const ( SecondFactorTotpAdded string = "totp_added" SecondFactorTotpUsed string = "totp_used" SecondFactorTotpRemoved string = "totp_removed" SecondFactorU2FAdded string = "u2f_added" SecondFactorU2FUsed string = "u2f_used" SecondFactorU2FRemoved string = "u2f_removed" SecondFactorBackupCodesAdded string = "backup_code_added" SecondFactorBackupCodesUsed string = "backup_code_used" SecondFactorBackupCodesRemoved string = "backup_code_removed" )
2FA Events
View Source
const ( LoginSuccess string = "login_success" LoginFailure string = "login_failure" AccountLoginNewDevice string = "login_new_device" Logout string = "logout" )
Login Events
View Source
const ( OAuthClientCreated string = "oauth_client_created" OAuthClientRemoved string = "oauth_client_removed" OAuthClientAuthorized string = "oauth_client_authorized" )
OAuth Events
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthPlzEvent ¶
AuthPlzEvent event type for asynchronous communication
func NewEvent ¶
func NewEvent(userExtID, eventType string, data map[string]string) *AuthPlzEvent
NewEvent Create a new AuthPlz event
func (*AuthPlzEvent) GetData ¶
func (e *AuthPlzEvent) GetData() map[string]string
GetData fetches data associated with the event
func (*AuthPlzEvent) GetTime ¶
func (e *AuthPlzEvent) GetTime() time.Time
GetTime fetches the event originator time
func (*AuthPlzEvent) GetType ¶
func (e *AuthPlzEvent) GetType() string
GetType fetches the event type
func (*AuthPlzEvent) GetUserExtID ¶
func (e *AuthPlzEvent) GetUserExtID() string
GetUserExtID fetches the associated external user id
Click to show internal directories.
Click to hide internal directories.