diff options
author | techknowlogick <techknowlogick@gitea.io> | 2021-08-17 04:07:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 09:07:52 +0100 |
commit | 37d0d94843e5d204169ee3cd51e5990eb2c2168e (patch) | |
tree | 4e0b95444bb2f21945b4d67f466387a6d7690879 /services | |
parent | ea07726dc193c41c60e26c25ad705059bd4f6555 (diff) | |
download | gitea-37d0d94843e5d204169ee3cd51e5990eb2c2168e.tar.gz gitea-37d0d94843e5d204169ee3cd51e5990eb2c2168e.zip |
Use github token URL when fetching oauth token (#16709)
Fixes regression from #16544
Diffstat (limited to 'services')
-rw-r--r-- | services/auth/source/oauth2/providers_custom.go | 2 |
1 files changed, 1 insertions, 1 deletions
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), |