  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Subject: - Re: Is this a JBP 2.6.1 bug? (403 Error From Dashboard Link) | Subject: - Re: Is this a JBP 2.6.1 bug? (403 Error From Dashboard Link) 2007-10-01 - By NM-156
Back OK - I found the solution on Friday, but I needed to verify it... You have to add a UserPrincipal to the Subject (directly) inside of your JAAS module. This is the piece that enabled the dashboard functionality. I tested this both in my valve and with my custom JAAS module, and this was the case in both contexts. I now have only one LoginModule configured within login-config.xml (my custom LoginModule), and everything works fine.
Just do this within your login() method, and the dashboard link will work. (Note that you have access to the subject object via the initialize() method).
| | getSubject().getPrincipals().add(new UserPrincipal(getLoginUser())); | |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4090281#4090281
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4090281 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |