File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,9 @@ var GitHub = oauth2.Endpoint{
6262
6363// GitLab is the endpoint for GitLab.
6464var GitLab = oauth2.Endpoint {
65- AuthURL : "https://gitlab.com/oauth/authorize" ,
66- TokenURL : "https://gitlab.com/oauth/token" ,
65+ AuthURL : "https://gitlab.com/oauth/authorize" ,
66+ TokenURL : "https://gitlab.com/oauth/token" ,
67+ DeviceAuthURL : "https://gitlab.com/oauth/authorize_device" ,
6768}
6869
6970// Google is the endpoint for Google.
Original file line number Diff line number Diff line change 66package gitlab // import "golang.org/x/oauth2/gitlab"
77
88import (
9- "golang.org/x/oauth2"
9+ "golang.org/x/oauth2/endpoints "
1010)
1111
1212// Endpoint is GitLab's OAuth 2.0 endpoint.
13- var Endpoint = oauth2.Endpoint {
14- AuthURL : "https://gitlab.com/oauth/authorize" ,
15- TokenURL : "https://gitlab.com/oauth/token" ,
16- }
13+ var Endpoint = endpoints .GitLab
You can’t perform that action at this time.
0 commit comments