Class: OmniAuth::Mixin::Configuration
- Inherits:
-
Object
- Object
- OmniAuth::Mixin::Configuration
- Defined in:
- lib/omniauth/mixin/configuration.rb
Overview
Configuration class for OmniAuth Mixin strategy Handles customizable options for the authentication process
Instance Attribute Summary collapse
-
#prompt ⇒ Object
Returns the value of attribute prompt.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#state_handler ⇒ Object
Returns the value of attribute state_handler.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 |
# File 'lib/omniauth/mixin/configuration.rb', line 13 def initialize @scope = "PROFILE:READ" @prompt = nil @state_handler = -> { SecureRandom.hex(16) } end |
Instance Attribute Details
#prompt ⇒ Object
Returns the value of attribute prompt.
11 12 13 |
# File 'lib/omniauth/mixin/configuration.rb', line 11 def prompt @prompt end |
#scope ⇒ Object
Returns the value of attribute scope.
11 12 13 |
# File 'lib/omniauth/mixin/configuration.rb', line 11 def scope @scope end |
#state_handler ⇒ Object
Returns the value of attribute state_handler.
11 12 13 |
# File 'lib/omniauth/mixin/configuration.rb', line 11 def state_handler @state_handler end |