[jboss-user] [JBoss Web Services] - How to get the principal on a webservice behind JAAS?
sjahan
do-not-reply at jboss.com
Fri Oct 7 11:54:45 EDT 2011
sjahan [http://community.jboss.org/people/sjahan] created the discussion
"How to get the principal on a webservice behind JAAS?"
To view the discussion, visit: http://community.jboss.org/message/630644#630644
--------------------------------------------------------------
Hi,
I assume this is certainly a newbie question but i never worked on this pattern before so i'm quite stuck on the question and need some help.
Here is the case: i have some JBossWS webservices : they're just some usual classes with annotations like that:
@PermitAll
@WebService(targetNamespace=" http://www.ws.com/portal http://www.ws.com/portal", name="portal", serviceName="portal")
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
public class WSPortal{
They're protected resource by JAAS, with a LDAPLoginModule which works fine for authentication, the trouble is that i didn't find a way to simply get the login of the connected user (or the principal or anything).
I used to work on servlets and this was quite simple to get it with HTTPServletRequest, but here, that doesn't fit :(
How am i supposed to get something on the user once i passed through JAAS in a JbossWS webservice class?
Maybe i'm not supposed to authenticate via JAAS, but i have no clue on the matter and i hope someone could help me about it!
Thank you very much by advance for your support,
SJ.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/630644#630644]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111007/21086856/attachment.html
More information about the jboss-user
mailing list