Skip to content

Commit

Permalink
Fix Github oauth provider configuration
Browse files Browse the repository at this point in the history
There was a regression in go-gitea#16544 whereby the default token url
for github was changed to the gitea one.

This PR restores this.

Signed-off-by: Andrew Thornton <art27@cantab.net>
  • Loading branch information
zeripath committed Aug 17, 2021
1 parent ea07726 commit 1de92b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/auth/source/oauth2/providers_custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var _ (GothProvider) = &CustomProvider{}
func init() {
RegisterGothProvider(NewCustomProvider(
"github", "GitHub", &CustomURLSettings{
TokenURL: availableAttribute(gitea.TokenURL),
TokenURL: availableAttribute(github.TokenURL),
AuthURL: availableAttribute(github.AuthURL),
ProfileURL: availableAttribute(github.ProfileURL),
EmailURL: availableAttribute(github.EmailURL),
Expand Down

0 comments on commit 1de92b1

Please sign in to comment.