Skip to content

Commit

Permalink
config for custom gitlab device auth
Browse files Browse the repository at this point in the history
  • Loading branch information
hickford committed Aug 8, 2024
1 parent c7e5afd commit e9745af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,9 @@ func main() {

// assumes GitLab installed at domain root
c.Endpoint = oauth2.Endpoint{
AuthURL: fmt.Sprintf("%s/oauth/authorize", urll),
TokenURL: fmt.Sprintf("%s/oauth/token", urll),
AuthURL: fmt.Sprintf("%s/oauth/authorize", urll),
TokenURL: fmt.Sprintf("%s/oauth/token", urll),
DeviceAuthURL: fmt.Sprintf("%s/oauth/authorize_device", urll),
}
c.Scopes = configByHost["gitlab.com"].Scopes
}
Expand Down

0 comments on commit e9745af

Please sign in to comment.