Hi, I've a authenticated web application. When I log on it, I should get the
authenticated subject usign this code:
AccessControlContext acc = AccessController.getContext();
| Subject subject = Subject.getSubject(acc);
But, subject is null.
I've seen a workaround for this:
Context ctx = new InitialContext();
| org.jboss.security.SubjectSecurityManager mgr =
(org.jboss.security.SubjectSecurityManager)ctx.lookup("java:comp/env/security/securityMgr");
| Subject sub = mgr.getActiveSubject();
but i want to know if it is a bug really or I'm doing an mistake.
Thanks!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934295#3934295
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934295
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user