Class: TwoFactorCookies::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/two_factor_cookies/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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

Instance Attribute Details

#additional_authentication_valuesObject

Returns the value of attribute additional_authentication_values.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def additional_authentication_values
  @additional_authentication_values
end

#confirm_phone_number_success_routeObject

Returns the value of attribute confirm_phone_number_success_route.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def confirm_phone_number_success_route
  @confirm_phone_number_success_route
end

#engine_nameObject

Returns the value of attribute engine_name.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def engine_name
  @engine_name
end

#layout_pathObject

Returns the value of attribute layout_path.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def layout_path
  @layout_path
end

#logging_method_nameObject

Returns the value of attribute logging_method_name.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def logging_method_name
  @logging_method_name
end

#otp_expiryObject

Returns the value of attribute otp_expiry.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def otp_expiry
  @otp_expiry
end

#otp_generation_secret_keyObject

Returns the value of attribute otp_generation_secret_key.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def otp_generation_secret_key
  @otp_generation_secret_key
end

#phone_number_field_nameObject

Returns the value of attribute phone_number_field_name.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def phone_number_field_name
  @phone_number_field_name
end

#skip_before_actionObject

Returns the value of attribute skip_before_action.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def skip_before_action
  @skip_before_action
end

#toggle_two_factor_success_routeObject

Returns the value of attribute toggle_two_factor_success_route.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def toggle_two_factor_success_route
  @toggle_two_factor_success_route
end

#twilio_account_sidObject

Returns the value of attribute twilio_account_sid.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def 
  @twilio_account_sid
end

#twilio_auth_tokenObject

Returns the value of attribute twilio_auth_token.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def twilio_auth_token
  @twilio_auth_token
end

#twilio_phone_numberObject

Returns the value of attribute twilio_phone_number.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def twilio_phone_number
  @twilio_phone_number
end

#two_factor_authentication_controller_parentObject

Returns the value of attribute two_factor_authentication_controller_parent.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def two_factor_authentication_controller_parent
  @two_factor_authentication_controller_parent
end

#two_factor_authentication_expiryObject

Returns the value of attribute two_factor_authentication_expiry.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def two_factor_authentication_expiry
  @two_factor_authentication_expiry
end

#two_factor_authentication_success_routeObject

Returns the value of attribute two_factor_authentication_success_route.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def two_factor_authentication_success_route
  @two_factor_authentication_success_route
end

#update_paramsObject

Returns the value of attribute update_params.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def update_params
  @update_params
end

#user_model_nameObject

Returns the value of attribute user_model_name.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def user_model_name
  @user_model_name
end

#username_field_nameObject

Returns the value of attribute username_field_name.



3
4
5
# File 'lib/two_factor_cookies/configuration.rb', line 3

def username_field_name
  @username_field_name
end