I use Alfresco 6 with 2 backend (alfresco and spring-boot).
I try to retrieve active tasks for specific user from spring-boot backend (in this example, user "acc1") but I get "401" issue :
This is the complete request :
When it's called from angular fronted, it works.
Here is my code :
public ResponseEntity<AlfrescoResponse> callAlfrescoBackEnd(String url) {
logger.info("url: " + url);
headers = new HttpHeaders();
headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));
headers.setContentType(MediaType.APPLICATION_JSON);
entity = new HttpEntity<String>(headers);
return restTemplate.exchange(url, HttpMethod.GET, entity, AlfrescoResponse.class);
}
How can I solve it ?
I think I should add autorization element in header:
java - How to retrieve Activiti task-form using REST? - Stack Overflow
But How retrieve the value ?
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.