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,
lib/omniauth/authenticity_token_protection.rb

Defined Under Namespace

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

Constant Summary collapse

VERSION =
'2.0.4'.freeze

Class Method Summary collapse

Class Method Details

.configObject


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

def self.config
  Configuration.instance
end

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

Yields:


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

def self.configure
  yield config
end

.loggerObject


138
139
140
# File 'lib/omniauth.rb', line 138

def self.logger
  config.logger
end

.mock_auth_for(provider) ⇒ Object


142
143
144
# File 'lib/omniauth.rb', line 142

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

.strategiesObject


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

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