Module: OmniAuth

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

Defined Under Namespace

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

Constant Summary

VERSION =
'1.2.2'

Class Method Summary collapse

Class Method Details

.configObject



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

def self.config
  Configuration.instance
end

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

Yields:



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

def self.configure
  yield config
end

.loggerObject



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

def self.logger
  config.logger
end

.mock_auth_for(provider) ⇒ Object



134
135
136
# File 'lib/omniauth.rb', line 134

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