[jboss-user] [Security & JAAS/JBoss] - Re: combination of JAAS
ragavgomatam
do-not-reply at jboss.com
Thu Mar 13 21:12:09 EDT 2008
As per http://wiki.jboss.org/wiki/Wiki.jsp?page=WebAuthentication
anonymous wrote : WebAuthentication pwl = new WebAuthentication();
| pwl.login(username, pass);
|
| //Only when there is web login, does the principal be visible
| log("User Principal="+request.getUserPrincipal());
you can't......But as per
http://roneiv.wordpress.com/2008/02/19/perform-a-jaas-programmatic-login-in-jboss-try-to-solve-the-empty-remote-user-problem/
you can......
anonymous wrote :
| 1. WebAuthentication webA = new WebAuthentication();
| 2. webA.login(username, password);
|
| WebAuthentication webA = new WebAuthentication();
| webA.login(username, password);
|
| And you’re on :) Both getUserPrincipal() and getRemoteUser() works.
Going by FAQ, answer appears to be no. You can't.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136499#4136499
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136499
More information about the jboss-user
mailing list