Updated code for gss_init_sec_context. First round trip now works, but input token is
[gssweb.git] / chrome / test / test.html
index 41b38fd..865db9f 100644 (file)
       function doInitSecContext() {
         gss = gss || new navigator.gss_eap({
           appTag: "TestApp",
-          success: function(data, appTag) {
-            $('#init_sec_context_context_handle').attr("value",
-                                                       data.context_handle);
-            report("Output token: " + data.output_token,
-                   '#init_sec_context_response');
-          }
         });
         gss.error = function(major, minor, errMsg, appTag) 
         {
         };        
 
         var params = {
-          target_name: document.getElementById('init_sec_context_target_name').value
+          target_name: document.getElementById('init_sec_context_target_name').value,
+          success: function(data, appTag) {
+            $('#init_sec_context_context_handle').attr("value",
+                                                       data.context_handle);
+            report("Output token: " + data.output_token,
+                   '#init_sec_context_response');
+          }
         };
         gss.init_sec_context(params);
       }