Permalink
Browse files

Pull in user info from updated API v3 URI

  • Loading branch information...
1 parent 5df67c0 commit fbcb313b79271433e904933521117ef18140f537 @skalnik committed Jun 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/warden-github/strategy.rb
View
2 lib/warden-github/strategy.rb
@@ -10,7 +10,7 @@ def authenticate!
begin
api = api_for(params['code'])
- resp = api.post '/login/oauth/access_token' do |request|
+ resp = api.get '/user' do |request|
request.params['access_token'] = api.token
end.body

0 comments on commit fbcb313

Please sign in to comment.