mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2025-04-17 12:41:51 +00:00
Move token provider up in auth chain
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
21aee74144
commit
57f5987480
1 changed files with 6 additions and 1 deletions
7
core.go
7
core.go
|
@ -14,12 +14,17 @@ import (
|
|||
)
|
||||
|
||||
func registerModules() {
|
||||
// Start with very simple, local auth providers as they are cheap
|
||||
// in their execution and therefore if they are used nginx-sso
|
||||
// can process far more requests than through the other providers
|
||||
registerAuthenticator(simple.New(cookieStore))
|
||||
registerAuthenticator(token.New())
|
||||
|
||||
// Afterwards utilize the more expensive remove providers
|
||||
registerAuthenticator(crowd.New())
|
||||
registerAuthenticator(ldap.New(cookieStore))
|
||||
registerAuthenticator(google.New(cookieStore))
|
||||
registerAuthenticator(oidc.New(cookieStore))
|
||||
registerAuthenticator(token.New())
|
||||
registerAuthenticator(auth_yubikey.New(cookieStore))
|
||||
|
||||
registerMFAProvider(duo.New())
|
||||
|
|
Loading…
Add table
Reference in a new issue