Use config from OAuth2Authenticator for auth command

This commit is contained in:
Philipp Wolfer 2023-11-22 08:41:18 +01:00
parent cf3747bde2
commit d0739aad0f
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
5 changed files with 31 additions and 18 deletions

View file

@ -43,7 +43,7 @@ func Authenticate(backend models.Backend, token *oauth2.Token, config *viper.Vip
if err != nil {
return auth, err
}
authenticator.OAuth2Setup(redirectURL.String(), token)
authenticator.OAuth2Setup(redirectURL, token)
}
return auth, nil
}