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/key_store.rb,
lib/omniauth/failure_endpoint.rb,
lib/omniauth/test/phony_session.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, Error, FailureEndpoint, Form, KeyStore, NoSessionError

Constant Summary collapse

VERSION =
'1.9.1'.freeze

Class Method Summary collapse

Class Method Details

.configObject



118
119
120
# File 'lib/omniauth.rb', line 118

def self.config
  Configuration.instance
end

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

Yields:



122
123
124
# File 'lib/omniauth.rb', line 122

def self.configure
  yield config
end

.loggerObject



126
127
128
# File 'lib/omniauth.rb', line 126

def self.logger
  config.logger
end

.mock_auth_for(provider) ⇒ Object



130
131
132
# File 'lib/omniauth.rb', line 130

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

.strategiesObject



19
20
21
# File 'lib/omniauth.rb', line 19

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