From 1de92b12ab221d2a2f241a86dfadcf9b11e5937b Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Tue, 17 Aug 2021 09:02:32 +0100 Subject: [PATCH] Fix Github oauth provider configuration There was a regression in #16544 whereby the default token url for github was changed to the gitea one. This PR restores this. Signed-off-by: Andrew Thornton --- 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 de1a1690cb2ea..f2cff131f4a29 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),