aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package.json2
-rw-r--r--src/routes/middleware/saml.ts2
-rw-r--r--yarn.lock4
3 files changed, 4 insertions, 4 deletions
diff --git a/package.json b/package.json
index 7862e3e..c7f3f92 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,7 @@
"passport": "^0.5.2",
"passport-saml": "3.2.1",
"shell-quote": "1.7.3",
- "umn-shib-nodejs": "RosstheRoss/umn-shib-nodejs#master"
+ "umn-shib-nodejs": "UMN-EE4951W-Lamperski/umn-shib-nodejs#master"
},
"devDependencies": {
"@types/cookie-parser": "1.4.2",
diff --git a/src/routes/middleware/saml.ts b/src/routes/middleware/saml.ts
index ad9d50d..86155c5 100644
--- a/src/routes/middleware/saml.ts
+++ b/src/routes/middleware/saml.ts
@@ -5,7 +5,7 @@ const saml = function (req: Request, res: Response, next: NextFunction): void {
const authenticator = new BasicAuthenticator(req, res);
if (!authenticator.hasSession()) {
authenticator.redirectToLogin();
- next();
+ return;
}
next();
};
diff --git a/yarn.lock b/yarn.lock
index c20c589..7bf559e 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3115,9 +3115,9 @@ uid-safe@2.1.5:
dependencies:
random-bytes "~1.0.0"
-umn-shib-nodejs@RosstheRoss/umn-shib-nodejs#master:
+umn-shib-nodejs@UMN-EE4951W-Lamperski/umn-shib-nodejs#master:
version "1.0.0"
- resolved "https://codeload.github.com/RosstheRoss/umn-shib-nodejs/tar.gz/1c9900f966f649626096e94bd38393f16b0d7435"
+ resolved "https://codeload.github.com/UMN-EE4951W-Lamperski/umn-shib-nodejs/tar.gz/1c9900f966f649626096e94bd38393f16b0d7435"
unbox-primitive@^1.0.1:
version "1.0.1"