From 1b452a4d76464a5caa34d42855fb595ca32f2988 Mon Sep 17 00:00:00 2001 From: Seth Wheeler Date: Tue, 2 Feb 2021 13:22:53 -0800 Subject: [PATCH] Include _cas_retry in url --- lib/passport-cas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/passport-cas.js b/lib/passport-cas.js index 52f1c33..111718a 100644 --- a/lib/passport-cas.js +++ b/lib/passport-cas.js @@ -168,7 +168,7 @@ CasStrategy.prototype.authenticate = function(req, options) { if (!ticket) { // Redirect to CAS server for authentication - self.redirect(self.casBaseUrl + '/login?service=' + encodeURIComponent(service), 307); + self.redirect(`${self.casBaseUrl}/login?service=${encodeURIComponent(service)}/?_cas_retry=${Math.round(date.getTime() / 60000)}`, 307); } else { // User has returned from CAS site with a ticket