Skip to content

Commit

Permalink
Include _cas_retry in url
Browse files Browse the repository at this point in the history
  • Loading branch information
Megapixel99 committed Feb 2, 2021
1 parent 63b6d0b commit 1b452a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/passport-cas.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b452a4

Please sign in to comment.