Class: OmniAuth::Strategies::Loctouch

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

Instance Method Summary collapse

Instance Method Details

#raw_infoObject



33
34
35
36
37
# File 'lib/omniauth/strategies/loctouch.rb', line 33

def raw_info
  access_token.options[:mode] = :query
  access_token.options[:param_name] = 'oauth_token'
  @raw_info ||= MultiJson.decode(access_token.get("/v1/users/@self", { 'oauth_token' => access_token.token }).body)["user"]
end

#request_phaseObject



14
15
16
17
# File 'lib/omniauth/strategies/loctouch.rb', line 14

def request_phase
  options[:response_type] ||= 'code'
  super
end