mirror of
https://git.sr.ht/~phw/scotty
synced 2025-05-01 06:07:04 +02:00
OAuth2Strategy interface to abstract the details of the login flow
This allows implementing clients the deviate from the standard OAuth2 flow
This commit is contained in:
parent
780af98e1e
commit
f447a259d4
6 changed files with 130 additions and 27 deletions
|
@ -46,7 +46,7 @@ func Authenticate(service string, backend models.Backend, db storage.Database, c
|
|||
if err != nil {
|
||||
return auth, err
|
||||
}
|
||||
conf := authenticator.OAuth2Config(redirectURL)
|
||||
conf := authenticator.OAuth2Strategy(redirectURL).Config()
|
||||
tokenSource := NewDatabaseTokenSource(db, service, &conf, token)
|
||||
authenticator.OAuth2Setup(tokenSource)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue