I need SSO with other old struts application on same server. With this class SSO authentication works, but authorization #{s:hasRole('admin')} don't :-(
@Name("org.jboss.seam.security.identity") @Scope(SESSION) @Install(precedence = Install.APPLICATION) @Intercept(NEVER) @Startup public class MyIdentity extends Identity { @Override public Principal getPrincipal() { Principal currentUser = ((HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext() .getRequest()).getUserPrincipal(); return currentUser; } } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033777#4033777 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033777 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user