Module: OmniAuth

Defined in:
lib/kth_omniauth.rb,
lib/kth_omniauth/version.rb

Defined Under Namespace

Modules: Strategies, Utils Classes: Configuration, Error

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.configObject



102
103
104
# File 'lib/kth_omniauth.rb', line 102

def self.config
  Configuration.instance
end

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

Yields:



106
107
108
# File 'lib/kth_omniauth.rb', line 106

def self.configure
  yield config
end

.loggerObject



110
111
112
# File 'lib/kth_omniauth.rb', line 110

def self.logger
  config.logger
end

.mock_auth_for(provider) ⇒ Object



114
115
116
# File 'lib/kth_omniauth.rb', line 114

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

.strategiesObject



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

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