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
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to