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: 5934217c4b
GitHub-Pull-Request: golang/oauth2#294
Reviewed-on: https://go-review.googlesource.com/113975
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Naveen Kumar Sangi 2018-05-21 18:49:11 +00:00 committed by Brad Fitzpatrick
parent a582fe72a3
commit 6e81df8ef0
1 changed files with 2 additions and 2 deletions

View File

@ -11,6 +11,6 @@ import (
// Endpoint is GitLab's OAuth 2.0 endpoint. // Endpoint is GitLab's OAuth 2.0 endpoint.
var Endpoint = oauth2.Endpoint{ var Endpoint = oauth2.Endpoint{
AuthURL: "https://gitlab.com/login/oauth2/authorize", AuthURL: "https://gitlab.com/oauth/authorize",
TokenURL: "https://gitlab.com/login/oauth2/access_token", TokenURL: "https://gitlab.com/oauth/token",
} }