Skip to content
Janko Marohnić edited this page Jan 7, 2025 · 1 revision

If you're using the audit_logging feature, it can be useful to include the external provider name in the login audit logs:

enable :audit_logging

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

Clone this wiki locally