Class: AuthenticationEvent
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- AuthenticationEvent
- Includes:
- UsageStatistics
- Defined in:
- app/models/authentication_event.rb
Constant Summary collapse
- TWO_FACTOR =
'two-factor'
- TWO_FACTOR_U2F =
'two-factor-via-u2f-device'
- TWO_FACTOR_WEBAUTHN =
'two-factor-via-webauthn-device'
- STANDARD =
'standard'
- STATIC_PROVIDERS =
[TWO_FACTOR, TWO_FACTOR_U2F, TWO_FACTOR_WEBAUTHN, STANDARD].freeze
Constants inherited from ApplicationRecord
Class Method Summary collapse
Methods inherited from ApplicationRecord
cached_column_list, #create_or_load_association, declarative_enum, default_select_columns, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, #readable_by?, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, #to_ability_name, underscore, where_exists, where_not_exists, with_fast_read_statement_timeout, without_order
Methods included from SensitiveSerializableHash
Class Method Details
.providers ⇒ Object
25 26 27 |
# File 'app/models/authentication_event.rb', line 25 def self.providers STATIC_PROVIDERS | Devise.omniauth_providers.map(&:to_s) end |