-
1. Re: How to simulation jaas login with jboss
hardy.hu Sep 23, 2011 4:57 AM (in response to hardy.hu)any help me!
-
2. Re: How to simulation jaas login with jboss
hardy.hu Sep 25, 2011 9:14 PM (in response to hardy.hu)anyone help me
-
3. Re: How to simulation jaas login with jboss
jaikiran Sep 26, 2011 2:06 AM (in response to hardy.hu)hai qing wrote:
But, I want to as follows way login the web app in servlet.
LoginContext login=new LoginContext("report",new SimpleCallbackHandle(name,"test"));
try {
login.login();
} catch (LoginException e) {
e.printStackTrace();
}
Through the above logged, but Jboss containers could not take the user and access information
What exact issue are you running into with that code? And which version of JBoss AS are you using?
-
4. Re: How to simulation jaas login with jboss
wolfgangknauf Sep 27, 2011 6:51 AM (in response to jaikiran)Hi,
you could use the class "org.jboss.web.tomcat.security.login.WebAuthentication" to perform a login in the web app: http://community.jboss.org/wiki/WebAuthentication
Best regards
Wolfgang
-
5. Re: How to simulation jaas login with jboss
hardy.hu Sep 29, 2011 9:32 PM (in response to wolfgangknauf)Thanks again for veryone help