If you are using SSO with LDAP then specify TrustedInfo in ldap.conf and if you are using SSO alone then specify TrustedInfo info in repository.xml. I hope you have already defined the cookie name in SSO Auth handler and the same cookie you are using in your servlet or other way of calling CQ.
Use the below code to create sessionResourceResolver resourceResolver = resolverFactory.getAdministrativeResourceResolver(null); Session session = resourceResolver.adaptTo(Session.class);
justin_at_adobe wrote... Hi, This works, but it would be significantly easier to user a higher-level HTTP client API which supports basic authentication. Justin Thanks Justin, will keep eye on it