Set Active User to AEM background job throws Exception unexpectedly
问题 We have background job running that requires a user to be active. The following way works fine but we have to hard-code the password which is not ideal. try { session = repository.login(new SimpleCredentials("admin", "admin".toCharArray())); } catch (RepositoryException ex) { log.error("SessionHelper - login issue", ex); } We attempt a better way to set active user without setting password as follows: Map<String, Object> params = new HashMap<String, Object>(); params.put