Skip to content

Commit

Permalink
Show enabling audit logging feature
Browse files Browse the repository at this point in the history
  • Loading branch information
janko committed Nov 18, 2024
1 parent 17fe759 commit 308ea75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ omniauth_identities_uid_column :uid
If you're using the `audit_logging` feature, it can be useful to include the external provider name in the `login` audit logs:

```rb
enable :audit_logging

audit_log_metadata_for :login do
{ "provider" => omniauth_provider } if authenticated_by.include?("omniauth")
end
Expand Down

0 comments on commit 308ea75

Please sign in to comment.