Added OAuth2 support for SSO

This commit is contained in:
Krzysztof Jagosz
2025-04-29 01:05:48 +02:00
parent 0e5550487e
commit 61b873451f
14 changed files with 454 additions and 37 deletions

View File

@ -10,6 +10,7 @@ package main
import (
"embed"
"flag"
"imuslab.com/zoraxy/mod/auth/sso/oauth2"
"net/http"
"time"
@ -146,6 +147,7 @@ var (
//Authentication Provider
autheliaRouter *authelia.AutheliaRouter //Authelia router for Authelia authentication
authentikRouter *authentik.AuthentikRouter //Authentik router for Authentik authentication
oauth2Router *oauth2.OAuth2Router //OAuth2Router router for OAuth2Router authentication
//Helper modules
EmailSender *email.Sender //Email sender that handle email sending