Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config for custom gitlab device auth
Browse files Browse the repository at this point in the history
hickford committed Aug 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c7e5afd commit 0cfe0c3
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
@@ -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
}

0 comments on commit 0cfe0c3

Please sign in to comment.