This content has been marked as final.
Show 3 replies
-
1. Re: JAAS for JBoss 7 - How to redirect to a default target url after login.
hrast200 Dec 28, 2011 8:34 AM (in response to hantsy)I'm sorry but I do not have solution to your problem.
I cannot start JAAS in jboss 7. Can you please give me some link how to do so? I've used WebAuthentication on JBoss 5 but on AS7 it doesn't work...
-
2. Re: JAAS for JBoss 7 - How to redirect to a default target url after login.
hantsy Dec 28, 2011 9:52 AM (in response to hrast200)I used the delcartive way, it works.
http://community.jboss.org/message/643013#643013
But I can login directly via login page, and got the warning message in browser.
PS:By the way, I used programmatic way in JSF beckend bean to overcome this barrier.
public String login() { HttpServletRequest request = (HttpServletRequest) FacesContext .getCurrentInstance().getExternalContext().getRequest(); try { request.login(username, password); FacesUtil.info("Welcome back, " + this.username); return "/admin/unconfirmed?faces-redirect=true"; } catch (ServletException e) { // TODO Auto-generated catch block e.printStackTrace(); } return "/login?faces-redirect=true&error=1"; }
-
3. Re: JAAS for JBoss 7 - How to redirect to a default target url after login.
hrast200 Dec 29, 2011 2:18 AM (in response to hantsy)Thank you!