I am calling rest APIs from outside activiti from a stand alone page simply on a button click "http://admin:test@localhost:8080/activiti-rest/service/runtime/process-instances " and it is giving error 401 (Unauthorized)
I found that for authorization we can include user name and password in the requested url from Activiti User Guide.
how to make authenticated rest api call please help.
Thank you,
Solved! Go to Solution.
I assume you're trying to use the REST API for the V6 community edition. It certainly does use basic authentication (Activiti/BasicAuthenticationProvider.java at 6.0-release · Activiti/Activiti · GitHub - if you're running from source code you could breakpoint or add logging at that class) so I'd expect that to work provided the admin/test user is in your database. I'd suggest checking whether it is in your database. You could also try from postman and adding the authentication header there.
I assume you're trying to use the REST API for the V6 community edition. It certainly does use basic authentication (Activiti/BasicAuthenticationProvider.java at 6.0-release · Activiti/Activiti · GitHub - if you're running from source code you could breakpoint or add logging at that class) so I'd expect that to work provided the admin/test user is in your database. I'd suggest checking whether it is in your database. You could also try from postman and adding the authentication header there.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
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.