Skip to content
Browse files

fix oauth api call

  • Loading branch information...
1 parent 16b3e03 commit e5dda8d12099464623481268dead2305b734028e @kyanny committed Jan 23, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/omniauth/strategies/loctouch.rb
View
7 lib/omniauth/strategies/loctouch.rb
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
require 'omniauth-oauth2'
require 'multi_json'
@@ -30,9 +31,9 @@ def request_phase
end
def raw_info
- @raw_info ||= begin
- MultiJson.decode(access_token.get("/v1/users/@self").body)["user"]
- end
+ 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
end
end

0 comments on commit e5dda8d

Please sign in to comment.
Something went wrong with that request. Please try again.