Class: OmniAuth::Strategies::OAuth2Generic

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/oauth2_generic.rb

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



54
55
56
57
# File 'lib/omniauth/strategies/oauth2_generic.rb', line 54

def authorize_params
  params = super
  Hash[params.map { |k, v| [k, v.respond_to?(:call) ? v.call(request) : v] }]
end

#raw_infoObject



50
51
52
# File 'lib/omniauth/strategies/oauth2_generic.rb', line 50

def raw_info
  @raw_info ||= access_token.get(options.client_options[:user_info_url]).parsed
end