Class: TwoFactorCookies::Configuration
- Inherits:
-
Object
- Object
- TwoFactorCookies::Configuration
- Defined in:
- lib/two_factor_cookies/configuration.rb
Instance Attribute Summary collapse
-
#additional_authentication_values ⇒ Object
Returns the value of attribute additional_authentication_values.
-
#confirm_phone_number_success_route ⇒ Object
Returns the value of attribute confirm_phone_number_success_route.
-
#engine_name ⇒ Object
Returns the value of attribute engine_name.
-
#layout_path ⇒ Object
Returns the value of attribute layout_path.
-
#logging_method_name ⇒ Object
Returns the value of attribute logging_method_name.
-
#otp_expiry ⇒ Object
Returns the value of attribute otp_expiry.
-
#otp_generation_secret_key ⇒ Object
Returns the value of attribute otp_generation_secret_key.
-
#phone_number_field_name ⇒ Object
Returns the value of attribute phone_number_field_name.
-
#skip_before_action ⇒ Object
Returns the value of attribute skip_before_action.
-
#toggle_two_factor_success_route ⇒ Object
Returns the value of attribute toggle_two_factor_success_route.
-
#twilio_account_sid ⇒ Object
Returns the value of attribute twilio_account_sid.
-
#twilio_auth_token ⇒ Object
Returns the value of attribute twilio_auth_token.
-
#twilio_phone_number ⇒ Object
Returns the value of attribute twilio_phone_number.
-
#two_factor_authentication_controller_parent ⇒ Object
Returns the value of attribute two_factor_authentication_controller_parent.
-
#two_factor_authentication_expiry ⇒ Object
Returns the value of attribute two_factor_authentication_expiry.
-
#two_factor_authentication_success_route ⇒ Object
Returns the value of attribute two_factor_authentication_success_route.
-
#update_params ⇒ Object
Returns the value of attribute update_params.
-
#user_model_name ⇒ Object
Returns the value of attribute user_model_name.
-
#username_field_name ⇒ Object
Returns the value of attribute username_field_name.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_values ⇒ Object
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_route ⇒ Object
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_name ⇒ Object
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_path ⇒ Object
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_name ⇒ Object
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_expiry ⇒ Object
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_key ⇒ Object
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_name ⇒ Object
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_action ⇒ Object
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_route ⇒ Object
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_sid ⇒ Object
Returns the value of attribute twilio_account_sid.
3 4 5 |
# File 'lib/two_factor_cookies/configuration.rb', line 3 def twilio_account_sid @twilio_account_sid end |
#twilio_auth_token ⇒ Object
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_number ⇒ Object
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_parent ⇒ Object
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_expiry ⇒ Object
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_route ⇒ Object
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_params ⇒ Object
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_name ⇒ Object
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_name ⇒ Object
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 |