Hi, for anybody who search a workaround for this issue, here is something that seems to work (but not an elegant solution for sure) :
@ViewConfig public interface AppViewConfig { static enum Pages { @FacesRedirect @ViewPattern("/*") @LoginView("/login.xhtml") @Authenticated ALL; } }
public @Secures @Authenticated boolean isLoggedIn() { if (facesContext.getExternalContext().getRequestServletPath().contains("login")) { return true; } return identity.isLoggedIn(); }
Regards.