5 Replies Latest reply on Jun 4, 2014 1:39 AM by Maciej Swiderski

    Expose Servlet along with JBPM UI How?

    Tim McClure Apprentice

       

      I want to define a servlet that exposes some functionality - not the complete JBPM UI- in order to do this I want to define a url that redirects to login.jsp/j_security_check and then calls GET on the original URL passed in.  I cannot get this to work as the URL states it needs authorization - because I placed it in the following element in the web.xml:

        <filter-mapping>

          <filter-name>UberFire Security Filter</filter-name>

          <url-pattern>/rest/*</url-pattern>

          <url-pattern>/maven2/*</url-pattern>

          <url-pattern>/org.kie.workbench.KIEWebapp/*</url-pattern>

          <url-pattern>/process/*</url-pattern>

          <url-pattern>*.erraiBus</url-pattern>

        </filter-mapping>

       

      I noticed the following defined:

        <filter-mapping>

          <filter-name>UberFire Security Filter</filter-name>

          <url-pattern>/rest/*</url-pattern>

          <url-pattern>/maven2/*</url-pattern>

          <url-pattern>/org.kie.workbench.KIEWebapp/*</url-pattern>

          <url-pattern>/process/*</url-pattern>

          <url-pattern>*.erraiBus</url-pattern>

        </filter-mapping>

       

      <init-param>

            <param-name>org.uberfire.auth.force.url</param-name>

            <param-value>/org.kie.workbench.KIEWebapp/KIEWebapp.html</param-value>

          </init-param>

       

      And the following comment:

      • org.uberfire.auth.force.url lets us specify the location that UberFire redirects to following a successful authentication (login) attempt.

       

      I want to go to the servlet passed in on the URL not forced to kie workbench - is this possible?

       

      Tim