Module: OmniAuth

Defined in:
lib/omniauth.rb,
lib/omniauth/form.rb,
lib/omniauth/test.rb,
lib/omniauth/builder.rb,
lib/omniauth/version.rb,
lib/omniauth/strategy.rb,
lib/omniauth/auth_hash.rb,
lib/omniauth/strategies/developer.rb,
lib/omniauth/test/strategy_macros.rb,
lib/omniauth/test/strategy_test_case.rb

Defined Under Namespace

Modules: Strategies, Strategy, Test, Utils Classes: AuthHash, Builder, Configuration, Form, NoSessionError

Constant Summary collapse

VERSION =
"1.0.3"

Class Method Summary collapse

Class Method Details

.configObject


95
96
97
# File 'lib/omniauth.rb', line 95

def self.config
  Configuration.instance
end

.configure {|config| ... } ⇒ Object

Yields:


99
100
101
# File 'lib/omniauth.rb', line 99

def self.configure
  yield config
end

.mock_auth_for(provider) ⇒ Object


103
104
105
# File 'lib/omniauth.rb', line 103

def self.mock_auth_for(provider)
  config.mock_auth[provider.to_sym] || config.mock_auth[:default]
end

.strategiesObject


15
16
17
# File 'lib/omniauth.rb', line 15

def self.strategies
  @@strategies ||= []
end