cancel
Showing results for 
Search instead for 
Did you mean: 

IdentitySession in Activiti 5.5

zeroone
Champ in-the-making
Champ in-the-making
Hey,

I wanted to integrate Spring Security into Activit's IdentitySession, but I was uanble to find the IdentitySession-Interface.
Could It be, that it is no longer available under the FQN: org.activiti.engine.impl.cfg.IdentitySession?

Ciao,

Christoph
30 REPLIES 30

frederikherema1
Star Contributor
Star Contributor
Hi,

The persistence internals have been renamed a bit. Look for UserManager and GroupManager now…

zeroone
Champ in-the-making
Champ in-the-making
Thanks found it.

heymjo
Champ on-the-rise
Champ on-the-rise
Since a lot of people have been asking on how to integrate their own user/group tables, would it be fair to ask for this to be included in the manual even with an EXPERIMENTAL tag ? I had just about puzzled the IdentitySession integration together from the forums, and now it has been renamed/split into UserManager and GroupManager. This is bound to throw off many forum searches.

Jorg

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
You can always start with writing a page that can be in the wiki or something… so feel free to write down what you did and how you achieved things… 🙂

limcheekin
Champ on-the-rise
Champ on-the-rise
Hi there,

I implemented custom identity session with Spring Security using the approach discuss here http://forums.activiti.org/en/viewtopic.php?f=6&t=1261

As IdentitySession is interface, where GroupManager and UserManager are concrete class. How do I implement the custom identity service in Activiti 5.5?

Lastly, in my opinion, it was more to major refactoring instead of minor renaming.

Please advice. Thanks.

Best regards,
Chee Kin

limcheekin
Champ on-the-rise
Champ on-the-rise
Anyone? This issue was blocking the release of Grails Activiti Plugin 5.5.

Best regards,
Chee Kin

transconnect
Champ in-the-making
Champ in-the-making
Hi all,

How do I implement the custom identity service in Activiti 5.5?

Because I also have the requirement to acces an LDAP, I've written two classes extending GroupManager and UserManager respective. Before creating the process engine, I have put the two classes as managers into the configuration:

Map<Class<?>,SessionFactory> facts = ((ProcessEngineConfigurationImpl)config).getSessionFactories();
           
facts.put( GroupManager.class, new org.activiti.engine.impl.persistence.GenericManagerFactory( LDAPGroupManager.class ) );
facts.put( UserManager .class, new org.activiti.engine.impl.persistence.GenericManagerFactory( LDAPUserManager .class ) );

My problem is, that after the Password is accepted, and the user group "admin" is succesfully delivered, the logon fails with the following error appearing on the browser:

HTTP ERROR: 500
Request processing failed; nested exception is org.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository
RequestURI=/activiti-probe/service/

Which methods are required at minimum in these two classes. Are there another manager required to implement?

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi all,

We desperately need an answer to Chee Kin's question (see above).

Thanks,
Markus

ageen
Champ in-the-making
Champ in-the-making
what I did is to add this to "processEngineConfiguration" config in spring,

  <property name="customSessionFactories">
   <list>
    <bean class="com.xxxxx.user.ActivitiCustomUserManagerFactory">
     <property name="usersDao" ref="usersDAO"/>
    </bean>
   </list>
  </property>

And this factory will return ActivitiCustomUserManager (extends UserManager) in its openSession() method.

Similar thing should be needed for GroupManager and its Factory as well.