Class: OmniAuth::Strategies::Coub
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Coub
- Defined in:
- lib/omniauth/strategies/coub.rb
Constant Summary collapse
- COUB_HOST =
ENV['OA_COUB_HOST'] || "coub.com"
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/omniauth/strategies/coub.rb', line 15 def super.tap do |params| raw_scope = params['scope'] if raw_scope scope_list = raw_scope.split(',') params['scope'] = scope_list.join(' ') end end end |
#raw_info ⇒ Object
36 37 38 |
# File 'lib/omniauth/strategies/coub.rb', line 36 def raw_info @raw_info ||= access_token.get("users/me").parsed end |