aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/routes/middleware/saml.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/middleware/saml.ts b/src/routes/middleware/saml.ts
index 86155c5..cce29a2 100644
--- a/src/routes/middleware/saml.ts
+++ b/src/routes/middleware/saml.ts
@@ -4,7 +4,7 @@ import { Request, Response, NextFunction } from 'express';
const saml = function (req: Request, res: Response, next: NextFunction): void {
const authenticator = new BasicAuthenticator(req, res);
if (!authenticator.hasSession()) {
- authenticator.redirectToLogin();
+ res.redirect(authenticator.buildLoginURL());
return;
}
next();