We have implemented the adf-diagram component in our ADF v4.3 app. When trying to display the diagram for a running process instance we are getting a 401 - Unauthorized error. The logged in user is then immediately logged out. This is only occurring when accessing a process instance on a remote APS server, in this case an aws ec2 instance. The issue does not occur when the app is pointed to a local APS instance. We are also able to reproduce the issue with the demo-shell app when pointed to the same remote server. Here's the error reported:
GET https://myhostport/activiti-app/app/rest/process-instances/587515/model-json 401
Error: HTTP Status 401 – Unauthorized</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> Access Denied</p><p><b>Description</b> The request has not been applied because it lacks valid authentication credentials for the target resource.</p><hr class="line" /><h3>Apache Tomcat/8.5.28</h3></body></html>
at v.<anonymous> (main-es2015.1c396ef7d23a5ac1eeec.js:1)
at v.n.emit (main-es2015.1c396ef7d23a5ac1eeec.js:1)
at XMLHttpRequest.t.onreadystatechange [as __zone_symbol__ON_PROPERTYreadystatechange] (main-es2015.1c396ef7d23a5ac1eeec.js:1)
at XMLHttpRequest.T (polyfills-es2015.752b36de6112257c6215.js:1)
at l.invokeTask (polyfills-es2015.752b36de6112257c6215.js:1)
at Object.onInvokeTask (main-es2015.1c396ef7d23a5ac1eeec.js:1)
at l.invokeTask (polyfills-es2015.752b36de6112257c6215.js:1)
at i.runTask (polyfills-es2015.752b36de6112257c6215.js:1)
at u.invokeTask [as invoke] (polyfills-es2015.752b36de6112257c6215.js:1)
at p (polyfills-es2015.752b36de6112257c6215.js:1)