05-14-2012 06:33 AM
#CAS
authentication.chain=cas:external,ldap1:ldap
05-15-2012 10:38 AM
05-20-2012 10:28 PM
08-30-2012 05:20 AM
08-30-2012 05:55 AM
08-30-2012 06:07 AM
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);
}
}
I reconstructed it from my various test, so there may be some errors…
11-27-2012 03:11 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.