cancel
Showing results for 
Search instead for 
Did you mean: 

JAAS Support in Activiti 5.15

b_schnarr
Champ in-the-making
Champ in-the-making
Hello at all,

I know that Activiti uses its own mechanisms to perform user logins. But I could not figure out if Activiti supports JAAS?

Thanks and best regards
Ben
1 REPLY 1

pmsevestre
Champ in-the-making
Champ in-the-making
You can use the current JAAS Principal name as the current Activiti identity using the following API call:

http://www.activiti.org/javadocs/org/activiti/engine/IdentityService.html#setAuthenticatedUserId(jav...

In a typical webapp scenario, the authenticated principal can be recovered from request object that is passed to your servlet. Background taks are trickier because they are usually executed by a system account.