1
0
Fork 0
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:
Knut Ahlers 2019-11-10 01:44:33 +01:00
parent 21aee74144
commit 57f5987480
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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())