mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 13:47:05 +02:00
Use config from OAuth2Authenticator for auth command
This commit is contained in:
parent
cf3747bde2
commit
d0739aad0f
5 changed files with 31 additions and 18 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue