Skip to content

Commit

Permalink
Fix original issue #
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewvalimaki committed Apr 11, 2016
1 parent 25d3f66 commit f1715ba
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,14 @@ CASAuthentication.prototype._login = function(req, res, next) {

// Set up the query parameters.
var query = {
service: this.service_url + url.parse(req.url).pathname,
renew: this.renew
service: this.service_url + url.parse(req.url).pathname
};

// see: https://jasig.github.io/cas/development/protocol/CAS-Protocol-Specification.html#parameters
// unless option is `true` do not set it as setting it equals `true` on the CAS server
if (this.renew === true) {
query.renew = true;
}

// Redirect to the CAS login.
res.redirect( this.cas_url + url.format({
Expand Down

0 comments on commit f1715ba

Please sign in to comment.