[jboss-user] [JBoss Seam] - Re: Seam Security Question - Tomcat Valve

Cyril.sochor do-not-reply at jboss.com
Mon Apr 2 13:39:01 EDT 2007


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



More information about the jboss-user mailing list