Use github token URL when fetching oauth token (#16709)

Fixes regression from #16544
tokarchuk/v1.17
techknowlogick 3 years ago committed by GitHub
parent ea07726dc1
commit 37d0d94843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      services/auth/source/oauth2/providers_custom.go

@ -55,7 +55,7 @@ var _ (GothProvider) = &CustomProvider{}
func init() { func init() {
RegisterGothProvider(NewCustomProvider( RegisterGothProvider(NewCustomProvider(
"github", "GitHub", &CustomURLSettings{ "github", "GitHub", &CustomURLSettings{
TokenURL: availableAttribute(gitea.TokenURL), TokenURL: availableAttribute(github.TokenURL),
AuthURL: availableAttribute(github.AuthURL), AuthURL: availableAttribute(github.AuthURL),
ProfileURL: availableAttribute(github.ProfileURL), ProfileURL: availableAttribute(github.ProfileURL),
EmailURL: availableAttribute(github.EmailURL), EmailURL: availableAttribute(github.EmailURL),

Loading…
Cancel
Save