As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
#CAS authentication.chain=cas:external,ldap1:ldap
AuthenticationUtil.runAsSystem(new RunAsWork<Void>() { public Void doWork() throws Exception { WebApplicationContext wc = WebApplicationContextUtils.getRequiredWebApplicationContext(contextF); AuthenticationContext authenticationContext = (AuthenticationContext)authentication; GrantedAuthority[] gas = new GrantedAuthority[1]; gas[0] = new GrantedAuthorityImpl("ROLE_AUTHENTICATED"); UserDetails ud = new net.sf.acegisecurity.providers.dao.User(userName, "", true, true, true, true, gas); authenticationContext.setUserDetails(ud); } }