Hi All,
I am doing authentication using code below
String authenticationType = getServletConfig().getInitParameter("authentication");
| SecurityAssociationHandler handler = new
| SecurityAssociationHandler();
| SimplePrincipal user = new SimplePrincipal(userName);
| handler.setSecurityInfo(user, password.toCharArray());
|
| LoginContext ctx = new LoginContext(authenticationType,
handler);
|
| ctx.login();
authentication is going fine and even i can retrieve the principles from subject.
But when i am trying to get the UserPrinciple() from servelt it's returning null and
even isUserInRole() returning null.
Is i need to do some thing to attach my subject to servlet container..
Any help is appreciated.
Regards,
Sudarshan
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853545#3853545
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853545
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user