extends |
AuditEvent |
|---|---|
implements |
GenericEventInterface |
uses |
GenericEventTrait |
Event dispatched when a user has added, changed or removed a credential under an authentication scheme.
Some authentication schemes handle multiple credentials (e.g. WebAuthnAuthSchemeModule handles multiple security keys), whereas others can only handle a single credential (e.g. a password). If an authentication scheme handle multiple credentials, each credential is identified using a module-specifc ID.
| Methods | ||
|---|---|---|
public
|
__construct(User $user, string $event_type, string $auth_module_name, ?string $credential_id = null)
|
# |
public
|
getAuthModuleName(): string
|
# |
public
|
getCredentialId(): string
|
# |
| Methods inherited from SimpleID\Base\AuditEvent |
|---|
getTime(), getIP(), getUserAgent(), getLocation(), getSubject(), getClient(), getAuditEventName() |
| Methods used from SimpleID\Util\Events\GenericEventTrait |
|---|
setEventName(), getEventName() |
| Constants | |||
|---|---|---|---|
public
|
CREDENTIAL_ADDED_EVENT = 'credential_added'
|
# | |
public
|
CREDENTIAL_CHANGED_EVENT = 'credential_changed'
|
# | |
public
|
CREDENTIAL_DELETED_EVENT = 'credential_deleted'
|
# | |
| Properties | |||
|---|---|---|---|
protected
|
string
|
$authModuleName
|
# |
protected
|
?string
|
$credentialId
|
# |
| Properties inherited from SimpleID\Base\AuditEvent |
|---|
$time, $ip, $userAgent, $location, $subject, $client |
| Properties used from SimpleID\Util\Events\GenericEventTrait |
|---|
$eventName |