I created an API that will consume Alfresco APIs. For example, i'm trying to consume the endpoint localhost:8081/test
with Basic Auth (admin/admin) that will consume the endpoint http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/audit-applications by feign client, but it's returning 401 - Unauthorized.
Solved! Go to Solution.
Ok, after many hours thinking... i forgot to exclude SecurityAutoConfiguration.class. Haha
For more details, i'm using these properties on my application.properties.
# HTTP Basic Authentication that will be used by the API content.service.security.basicAuth.username=admin content.service.security.basicAuth.password=admin # Location of the server and API endpoints content.service.url=http://localhost:8080 content.service.path=/alfresco/api/-default-/public/alfresco/versions/1 search.service.path=/alfresco/api/-default-/public/search/versions/1
But it's not working.
When i access the endpoint of my application (http://localhost:8081/test) to consume Alfresco APIs internally, i get 401 - Unauthorized.
Ok, after many hours thinking... i forgot to exclude SecurityAutoConfiguration.class. Haha
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.