From 37d0d94843e5d204169ee3cd51e5990eb2c2168e Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Tue, 17 Aug 2021 04:07:52 -0400 Subject: [PATCH] Use github token URL when fetching oauth token (#16709) Fixes regression from #16544 --- services/auth/source/oauth2/providers_custom.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/auth/source/oauth2/providers_custom.go b/services/auth/source/oauth2/providers_custom.go index de1a1690cb..f2cff131f4 100644 --- a/services/auth/source/oauth2/providers_custom.go +++ b/services/auth/source/oauth2/providers_custom.go @@ -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),