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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...