title: jBPM custom authorization
body: <p>I am trying to use in jBPM users from existing ASP .NET MVC Web Site. </p>
  
  <p>As I understand from <a href="http://docs.jboss.org/jbpm/v6.3/userguide/ch03.html#d0e845" rel="nofollow">docs</a> and this forum topics (<a href="https://developer.jboss.org/thread/243021?start=0&amp;tstart=0" rel="nofollow">first</a>, <a href="https://developer.jboss.org/message/950836#950836" rel="nofollow">second</a>) best solution would be implementing of <code>UserGroupInfoProducer</code> that will call external service. But due lacking of experience with java I faced with several problems. </p>
  
  <p><strong>First approach:</strong> Create project with required implementation, deploy it and config jBMP to use it. </p>
  
  <p>Problem was in implement interfaces that declared in another project, I've tried to add maven dependencies but after failing with some classes I've just added reference to required jar. </p>
  
  <p>Deploy it on jboss like war failed, deploying like jar succeeded but server did not find <code>UserGroupInfoProducer</code> and other implemented interfaces.</p>
  
  <p>Another problem in changing config of <code>jbmp-console</code>. Only way that I've found for that is modify archive directly, but I don't this it's right solution.</p>
  
  <p><strong>Second approach:</strong> Create own package of jBPM with required classes. 
  Problem here that I don't know what repository use for this and how to build version for my server. 
  As I understand from this <a href="https://developer.jboss.org/thread/259316?start=0&amp;tstart=0" rel="nofollow">link</a> I need to use <a href="https://github.com/droolsjbpm/jbpm-console-ng" rel="nofollow">jbmp-console-ng</a>, only maven task for creating war package that I found was in <code>jbpm-console-ng-showcase</code> I've tried to run it (release 6.2.0 Final) on:</p>
  
  <ul>
  <li><p>On Windows: failed to execute because of maven error about long path, after migrating project to gradle and excluding dependencies on jmxtools-1.2.1.jar and jmxri-1.2.1.jar it created war but jboss failed to start service.  </p></li>
  <li><p>On Mac and Ubuntu using virtual box: it required to downgrade java to 1.6 and built war after this, but it failed to deploy due duplication of some classes.</p></li>
  </ul>
  
  <p>As I understand you need to build diferently for each version of server but I don't know how to do this.</p>
  
  <p><strong>Third approach:</strong> Create come simulation of supported authorization ways. As I understand jBMP support LDAP, JAAS, database and file. Database and files will require duplicating users so I researched about simulating LDAP or JAAS (preferably using C#) but did not find any acceptable way. </p>
  
  <p><em>I will be very grateful for any advise which of this approach may work or some other suggestions. Especially about building war of <code>jbmp-console</code>.</em> </p>
  
  <p><em>version used</em>: 
  jBPM(6.2.0 Final), jBoss(Wildfly 8.1.0 Final), Java(1.8.0.73), Ant(1.9.6), Gradle(2.11), Intellij IDEA (15.0.3).</p>