Hello,
I'm trying to build an integration that works with AEM Assets using Assets HTTP API. I am using this article to do so but I can go through all the steps only with the local development token and when I am trying to authorize with Basic Auth in Postman I keep getting 401.
What can be done to resolve this issue?
Are there any other methods of authorization like Oauth specifically for Assets HTTP API? I can see a lot of documentation about it but none specify if it can be used for assets.
Thanks in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Alex__Canva ,
I am not sure about your exact use case, but I used Assets HTTP API delete method for Assets on cloud service. Below are screenshots for your reference -
Request - http://localhost:4502/api/assets/1/1.png
Authorization - Basic Authorization
In case you are trying to connect to a server, replace local host with the server details.
Hope it helps!
Regards,
Manpreet
Hi @Alex__Canva,
Try below steps:
Hope this helps.
Thanks,
Kiran Vedantam.
Hi @Alex__Canva,
If we are accessing AEM as cloud service instance (as available/hosted in the cloud) from any external application, we need to use "Token Based Authentication"/ Bearer type.
In this case, external application is Postman.
If we are accessing any local AEM instance / SDK instance, we can use Basic Authentication.
Hello,
Are you sure that Basic Authentication cannot be somehow enabled? As you can see in this example AEM as Cloud Service is used.
Hi @Alex__Canva,
Generally for AEM as a cloud service, we gain access to the instance(as available in cloud) via IMS authentication (which works by using the OAuth protocol between AEM and the Adobe IMS endpoint)
We do have local logins as well but that is only available for admin tasks in which case HTTP Basic authentication should work. (that is if you have credentials which has access and works through local login in cloud service instance, that should work with Basic type. Otherwise, it will be 401)
Reference: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/security/ims-support.html
Hi @Alex__Canva ,
I am not sure about your exact use case, but I used Assets HTTP API delete method for Assets on cloud service. Below are screenshots for your reference -
Request - http://localhost:4502/api/assets/1/1.png
Authorization - Basic Authorization
In case you are trying to connect to a server, replace local host with the server details.
Hope it helps!
Regards,
Manpreet