From 6e81df8ef0a724b033ea2c66fac84563815768a4 Mon Sep 17 00:00:00 2001 From: Naveen Kumar Sangi Date: Mon, 21 May 2018 18:49:11 +0000 Subject: [PATCH] gitlab: Use correct endpoint URLs Reference: https://docs.gitlab.com/ee/api/oauth2.html#web-application-flow Change-Id: Id8b2189692c1b80b970f3af7ed71d7a59bd9aec4 Change-Id: Id8b2189692c1b80b970f3af7ed71d7a59bd9aec4 GitHub-Last-Rev: 5934217c4bd207ccf2f99947465dd1cd91e62c38 GitHub-Pull-Request: golang/oauth2#294 Reviewed-on: https://go-review.googlesource.com/113975 Reviewed-by: Brad Fitzpatrick --- gitlab/gitlab.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitlab/gitlab.go b/gitlab/gitlab.go index 7f61c74..1231d75 100644 --- a/gitlab/gitlab.go +++ b/gitlab/gitlab.go @@ -11,6 +11,6 @@ import ( // Endpoint is GitLab's OAuth 2.0 endpoint. var Endpoint = oauth2.Endpoint{ - AuthURL: "https://gitlab.com/login/oauth2/authorize", - TokenURL: "https://gitlab.com/login/oauth2/access_token", + AuthURL: "https://gitlab.com/oauth/authorize", + TokenURL: "https://gitlab.com/oauth/token", }