mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 05:37:05 +02:00
moved OAuth2Authenticator to auth package
This commit is contained in:
parent
dd501df5c5
commit
a59a542967
6 changed files with 41 additions and 21 deletions
|
@ -26,12 +26,11 @@ import (
|
|||
"go.uploadedlobster.com/scotty/internal/backends"
|
||||
"go.uploadedlobster.com/scotty/internal/config"
|
||||
"go.uploadedlobster.com/scotty/internal/i18n"
|
||||
"go.uploadedlobster.com/scotty/internal/models"
|
||||
"go.uploadedlobster.com/scotty/internal/storage"
|
||||
"golang.org/x/oauth2"
|
||||
)
|
||||
|
||||
func AuthenticationFlow(service config.ServiceConfig, backend models.OAuth2Authenticator) {
|
||||
func AuthenticationFlow(service config.ServiceConfig, backend auth.OAuth2Authenticator) {
|
||||
redirectURL, err := backends.BuildRedirectURL(viper.GetViper(), backend.Name())
|
||||
cobra.CheckErr(err)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue