Enable LDAP and SAML authentication support

This commit is contained in:
yu-i-i
2026-07-17 17:54:27 +02:00
parent d0f96f6587
commit 5b8db1ddef
25 changed files with 944 additions and 7 deletions
@@ -455,7 +455,7 @@ async function updateUserSettings(req, res, next) {
if (
newEmail == null ||
newEmail === user.email ||
req.externalAuthenticationSystemUsed()
(req.externalAuthenticationSystemUsed() && !user.hashedPassword)
) {
// end here, don't update email
SessionManager.setInSessionUser(req.session, {
@@ -542,6 +542,7 @@ async function doLogout(req) {
}
async function logout(req, res, next) {
if (req?.session.saml_extce) return res.redirect(308, '/saml/logout')
const requestedRedirect = req.body.redirect
? UrlHelper.getSafeRedirectPath(req.body.redirect)
: undefined