Class: OmniAuth::Strategies::Singly

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

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



14
15
16
17
18
19
# File 'lib/omniauth/strategies/singly.rb', line 14

def authorize_params
  super.merge(
    :service => request.params["service"],
    :scope   => request.params["scope"]
  )
end

#raw_infoObject



27
28
29
30
31
32
33
# File 'lib/omniauth/strategies/singly.rb', line 27

def raw_info
  @raw_info ||= begin
    access_token.options[:mode] = :query
    access_token.options[:param_name] = :access_token
    access_token.get("/profiles").parsed
  end
end