[jboss-dev-forums] [JBoss AS 7 Development] - Re: JBoss AS 7.1.1.Final custom login module for remoting and custom principal

jingjing jiang do-not-reply at jboss.com
Wed Sep 5 04:25:47 EDT 2012


jingjing jiang [https://community.jboss.org/people/jingjingjiang1986] created the discussion

"Re: JBoss AS 7.1.1.Final custom login module for remoting and custom principal"

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

--------------------------------------------------------------
I encouter a problem like this, sessionContext.getCallerPrincipal() always returns a SimplePrincipal instance, and its name is "anonymous", I expected that it would return a customed principal which implements the interface Principal.

At client side, I implement a LoginModule, in the method commit(), add a my own customed principal, then call the remote EJB.
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120905/930ac052/attachment.html 


More information about the jboss-dev-forums mailing list