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.1.2'.freeze

Class Method Summary collapse

Class Method Details

.configObject



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

def self.config
  Configuration.instance
end

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

Yields:



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

def self.configure
  yield config
end

.loggerObject



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

def self.logger
  config.logger
end

.mock_auth_for(provider) ⇒ Object



146
147
148
# File 'lib/omniauth.rb', line 146

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

.strategiesObject



24
25
26
# File 'lib/omniauth.rb', line 24

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