Class: OmniAuth::Strategies::Coub

Inherits:
OAuth2
  • Object
show all
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_paramsObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/omniauth/strategies/coub.rb', line 15

def authorize_params
  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_infoObject



36
37
38
# File 'lib/omniauth/strategies/coub.rb', line 36

def raw_info
  @raw_info ||= access_token.get("users/me").parsed
end