0 Replies Latest reply on Jun 24, 2014 7:21 AM by sahar mohebi

    "This request requires HTTP authentication" Error in gwt for connect to kie-wb by rest API

    sahar mohebi Newbie

      Hi,

      I have  gwt application and want to use REST API for connecting to jbpm kie-wb.

      when I want to get data ,I get Error:" This request requires HTTP authentication "

      I have my on login process So I  want to program to  set up j_security_check in gwt on my own login action.

      How can I do it  on gwt and jboss?

      Thanks in advance.

      My javascript code to show process form:

       

      
      function showProcessForm() {
        var onsuccessCallback = function(response) {
          document.getElementById("showformButton").style.display = "none";
          document.getElementById("startprocessButton").style.display = "block";
        }
      
        var onerrorCallback = function(errorMessage) {
          alert("Unable to load the form, something wrong happened: " + errorMessage);
          formsAPI.clearContainer("myform");
        }
        formsAPI.showStartProcessForm("http://localhost:8080/kie-wb/", "org.jbpm:HR:1.0", "hiring", "myform", onsuccessCallback, onerrorCallback);
      }