mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-20 12:51:17 +00:00
1e9446d2e6
Allows to have local accounts that always work, even if there are LDAP problems
28 lines
1,006 B
Go
28 lines
1,006 B
Go
package main
|
|
|
|
import (
|
|
"github.com/Luzifer/nginx-sso/plugins/auth/crowd"
|
|
"github.com/Luzifer/nginx-sso/plugins/auth/google"
|
|
"github.com/Luzifer/nginx-sso/plugins/auth/ldap"
|
|
"github.com/Luzifer/nginx-sso/plugins/auth/oidc"
|
|
"github.com/Luzifer/nginx-sso/plugins/auth/simple"
|
|
"github.com/Luzifer/nginx-sso/plugins/auth/token"
|
|
auth_yubikey "github.com/Luzifer/nginx-sso/plugins/auth/yubikey"
|
|
"github.com/Luzifer/nginx-sso/plugins/mfa/duo"
|
|
"github.com/Luzifer/nginx-sso/plugins/mfa/totp"
|
|
mfa_yubikey "github.com/Luzifer/nginx-sso/plugins/mfa/yubikey"
|
|
)
|
|
|
|
func registerModules() {
|
|
registerAuthenticator(simple.New(cookieStore))
|
|
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())
|
|
registerMFAProvider(totp.New())
|
|
registerMFAProvider(mfa_yubikey.New())
|
|
}
|