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
.config ⇒ Object
102
103
104
|
# File 'lib/kth_omniauth.rb', line 102
def self.config
Configuration.instance
end
|
106
107
108
|
# File 'lib/kth_omniauth.rb', line 106
def self.configure
yield config
end
|
.logger ⇒ Object
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
|
.strategies ⇒ Object
19
20
21
|
# File 'lib/kth_omniauth.rb', line 19
def self.strategies
@@strategies ||= []
end
|