[jboss-user] [jBPM] - Re: authenticated userId in workitem

Maciej Swiderski do-not-reply at jboss.com
Tue May 29 01:21:51 EDT 2012


Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: authenticated userId in workitem"

To view the discussion, visit: https://community.jboss.org/message/738378#738378

--------------------------------------------------------------
Currently there is no out of the box support for this but if your execution is done by the same thread that started the process in console (meaning it did not went into any state node or async processing) you could get if from the thread context as it contains subject:


Subject subject = (Subject) PolicyContext.getContext("javax.security.auth.Subject.container");


>From subject you can then get principals and one of them will be related to user, rest could be some roles/groups that users belongs to, etc.
NOTE: This is part of JACC so it should be cross container.

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/738378#738378]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120529/b92cd7aa/attachment.html 


More information about the jboss-user mailing list