Commit 95c52b2d authored by Toon Claes's avatar Toon Claes

Use API v4 during Geo OAuth authentication

`/api/v3/user` and `/api/v4/user` behave exactly the same, so prepare
for removal of API v3, and use v4 instead.

Closes gitlab-org/gitlab-ee#3624.
parent d0b8999d
......@@ -58,7 +58,7 @@ module Gitlab
return false unless access_token
api = OAuth2::AccessToken.from_hash(oauth_client, access_token: access_token)
api.get('/api/v3/user').parsed
api.get('/api/v4/user').parsed
end
private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment