[jboss-user] [JBoss Portal] - Re: Is this a JBP 2.6.1 bug? (403 Error From Dashboard Link)

NM-156 do-not-reply at jboss.com
Mon Oct 1 10:16:18 EDT 2007


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



More information about the jboss-user mailing list