Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2 from stuartf/master

serviceValidate call broken on vanilla CAS
  • Loading branch information...
commit a6f3cf49d645bf2326c0dc5e3f43b396163a548f 2 parents 0e790a5 + 860b0c6
Graham Ballantyne grahamb authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 lib/cas-sfu.js
9 lib/cas-sfu.js
View
@@ -29,15 +29,14 @@ CAS.prototype.validate = function(ticket, callback) {
delete service.search;
service = url.format(service);
- bodystr = 'ticket=' + ticket + '&service=' + service;
+ bodystr = '?ticket=' + ticket + '&service=' + service;
if (this.options.allow) {
bodystr += '&allow=' + this.options.allow;
}
// call /validate with the ticket & service and call the callback
- request.post({
- uri: this.options.casBase + this.options.validatePath,
- body: bodystr
+ request.get({
+ uri: this.options.casBase + this.options.validatePath + bodystr
}, function(err, response, body) {
if (err) {
// do something
@@ -139,4 +138,4 @@ module.exports.getMiddleware = function(options) {
res.redirect(url.format(redirectUrl));
}
};
-};
+};
Please sign in to comment.
Something went wrong with that request. Please try again.