class TwoFactorCookies::Configuration

Attributes

additional_authentication_values[RW]
confirm_phone_number_success_route[RW]
engine_name[RW]
layout_path[RW]
logging_method_name[RW]
otp_expiry[RW]
otp_generation_secret_key[RW]
phone_number_field_name[RW]
skip_before_action[RW]
toggle_two_factor_success_route[RW]
twilio_account_sid[RW]
twilio_auth_token[RW]
twilio_phone_number[RW]
two_factor_authentication_controller_parent[RW]
two_factor_authentication_expiry[RW]
two_factor_authentication_success_route[RW]
update_params[RW]
user_model_name[RW]
username_field_name[RW]

Public Class Methods

new() click to toggle source
# File lib/two_factor_cookies/configuration.rb, line 9
def initialize
  @otp_generation_secret_key = nil
  @two_factor_authentication_expiry = 30.days
  @otp_expiry = 30.minutes

  @twilio_account_sid = nil
  @twilio_phone_number = nil
  @twilio_auth_token = nil

  @user_model_name = :user
  @phone_number_field_name = :phone_number
  @username_field_name = :username

  @two_factor_authentication_success_route = nil
  @toggle_two_factor_success_route = nil
  @confirm_phone_number_success_route = nil
  @layout_path = nil
  @two_factor_authentication_controller_parent = '::ApplicationController'
  @logging_method_name = nil

  @additional_authentication_values = {}

  @update_params = nil
  @engine_name = 'main_app'
end