aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/middleware
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2022-04-01 18:28:59 +0200
committerMatt Strapp <matt@mattstrapp.net>2022-04-01 18:30:07 +0200
commit6eab1c22b8fd0282d5d8606f2f1259a8bfa1d93d (patch)
tree4057b3095bae8264db0750bbe44caebc25d6a0c2 /src/routes/middleware
parentChange shib location (diff)
downloadee4511w-web-6eab1c22b8fd0282d5d8606f2f1259a8bfa1d93d.tar
ee4511w-web-6eab1c22b8fd0282d5d8606f2f1259a8bfa1d93d.tar.gz
ee4511w-web-6eab1c22b8fd0282d5d8606f2f1259a8bfa1d93d.tar.bz2
ee4511w-web-6eab1c22b8fd0282d5d8606f2f1259a8bfa1d93d.tar.lz
ee4511w-web-6eab1c22b8fd0282d5d8606f2f1259a8bfa1d93d.tar.xz
ee4511w-web-6eab1c22b8fd0282d5d8606f2f1259a8bfa1d93d.tar.zst
ee4511w-web-6eab1c22b8fd0282d5d8606f2f1259a8bfa1d93d.zip
Fix bug involving redirects not working properly
Diffstat (limited to 'src/routes/middleware')
-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();