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.1'

Class Method Summary (collapse)

Class Method Details

+ (Object) config



120
121
122
# File 'lib/omniauth.rb', line 120

def self.config
  Configuration.instance
end

+ (Object) configure {|config| ... }

Yields:



124
125
126
# File 'lib/omniauth.rb', line 124

def self.configure
  yield config
end

+ (Object) logger



128
129
130
# File 'lib/omniauth.rb', line 128

def self.logger
  config.logger
end

+ (Object) mock_auth_for(provider)



132
133
134
# File 'lib/omniauth.rb', line 132

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

+ (Object) strategies



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

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