Class: OmniAuth::Mixin::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#promptObject

Returns the value of attribute prompt.



11
12
13
# File 'lib/omniauth/mixin/configuration.rb', line 11

def prompt
  @prompt
end

#scopeObject

Returns the value of attribute scope.



11
12
13
# File 'lib/omniauth/mixin/configuration.rb', line 11

def scope
  @scope
end

#state_handlerObject

Returns the value of attribute state_handler.



11
12
13
# File 'lib/omniauth/mixin/configuration.rb', line 11

def state_handler
  @state_handler
end