Lightning.Credentials.Audit (Lightning v2.13.5)

View Source

Model for storing changes to Credentials

Summary

Functions

Creates an audit event for OAuth token refresh failure. Records the failure with error details for debugging.

Creates an audit event for OAuth token refresh success. Records the refresh operation with metadata about the OAuth client and scopes.

Creates an audit event for OAuth token revocation. Records when tokens are revoked during credential deletion.

Creates a user-initiated audit event for credential operations.

Functions

base_query()

event(event, item_id, actor, changes \\ %{}, metadata \\ %{})

oauth_token_refresh_failed_event(credential, error_details)

Creates an audit event for OAuth token refresh failure. Records the failure with error details for debugging.

oauth_token_refreshed_event(credential, metadata \\ %{})

Creates an audit event for OAuth token refresh success. Records the refresh operation with metadata about the OAuth client and scopes.

oauth_token_revoked_event(credential, metadata \\ %{})

Creates an audit event for OAuth token revocation. Records when tokens are revoked during credential deletion.

save(changes)

update_changes(changes)

Callback implementation for Lightning.Auditing.Audit.update_changes/1.

user_initiated_event(event, credential, changes \\ %{})

Creates a user-initiated audit event for credential operations.