This content has been marked as final.
Show 2 replies
-
1. Re: Web Service (non-ejb) and retrieval of user identity
anil.saldhana Nov 17, 2011 12:04 PM (in response to slopez01)If you are talking about POJO based WS, then instead of SAML2Handler, you need a combination of the WSAuthenticationHandler and WSAuthorizationHandler
https://docs.jboss.org/author/display/PLINK/PicketLink+JBoss+Web+Services+Handlers
-
2. Re: Web Service (non-ejb) and retrieval of user identity
slopez01 Nov 18, 2011 8:18 AM (in response to anil.saldhana)Thanks, I had both the WSAuthenticationHandler and the WSAuthorizationHandler configured. I was having issues getting the userid out of the information. asking for the principal from the web service context produced a null result.
I was able to grab the user id by calling the SecurityAssociation class which stores the user information and groups.
Thanks