X-Git-Url: http://www.project-moonshot.org/gitweb/?p=gssweb.git;a=blobdiff_plain;f=navigator.gssweb.js;fp=navigator.gssweb.js;h=27163c01eb6fa59567cd80a9111eb98c88bbeae2;hp=a72fa87dc695138c8351a1364e51a1ee26585677;hb=6cc1b81776266e402a7d5ed416cd978ae2a3ed04;hpb=0dfb8cc44e5656c40d32384e051edbb886162d91 diff --git a/navigator.gssweb.js b/navigator.gssweb.js index a72fa87..27163c0 100644 --- a/navigator.gssweb.js +++ b/navigator.gssweb.js @@ -124,7 +124,7 @@ var GSSWeb = (function () { }; if ("" != this.clientCred) { - params.claimant_cred_handle = this.clientCred; + params.cred_handle = this.clientCred; } if ("" != this.serverToken) { params.input_token = this.serverToken; @@ -135,20 +135,18 @@ var GSSWeb = (function () { this.gss.init_sec_context(params); }; + GSSWeb.prototype.sendTokenToServer = - function (ctxt, - mech_type, - output_token, - ret_flags, - time_rec, + function (data, app_tag) { - this.clientToken = output_token; - this.context = ctxt; + this.clientToken = data.output_token; + this.context = data.context_handle; - var data = "nonce=" + this.nonce + + var msg = "nonce=" + this.nonce + "&token=" + encodeURIComponent(this.clientToken); - this.xhr.send(data); + this.xhr.send(msg); }; + GSSWeb.prototype.recvTokenFromServer = function () { // Only care when we're ready if (this.xhr.readyState != 4) {