Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix serviceValidate call for vanilla CAS

  • Loading branch information...
commit 860b0c625eccb75a410af801d4ff8849fc4122aa 1 parent 0e790a5
@stuartf stuartf authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 lib/cas-sfu.js
View
9 lib/cas-sfu.js
@@ -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.