Class: OmniAuth::Strategies::Loctouch
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Loctouch
- Defined in:
- lib/omniauth/strategies/loctouch.rb
Instance Method Summary collapse
Instance Method Details
#raw_info ⇒ Object
33 34 35 36 37 |
# File 'lib/omniauth/strategies/loctouch.rb', line 33 def raw_info access_token.[:mode] = :query access_token.[:param_name] = 'oauth_token' @raw_info ||= MultiJson.decode(access_token.get("/v1/users/@self", { 'oauth_token' => access_token.token }).body)["user"] end |
#request_phase ⇒ Object
14 15 16 17 |
# File 'lib/omniauth/strategies/loctouch.rb', line 14 def request_phase [:response_type] ||= 'code' super end |