From 1f5bc5ebf331471de47436efbaccfe063b35d2c1 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Mon, 16 Aug 2021 19:49:12 -0400 Subject: [PATCH] use github token URL when fetching oauth token --- 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),