Getting access to AEM as Cloud Service Assets via Assets HTTP API without service credentials | Community
Skip to main content
Level 2
October 14, 2021
Solved

Getting access to AEM as Cloud Service Assets via Assets HTTP API without service credentials

  • October 14, 2021
  • 2 replies
  • 2076 views

Hello,

I'm trying to build an integration with AEM that allows managing assets via Assets HTTP API.
Is there any way to get access not to my AEM instance, but to another user's instance? The user can give the URL of the instance in
https://author-p#####-e#####.adobeaemcloud.com format (not local instance) and login via Oauth or Basic auth. I cannot get the service credentials, obviously. The application can download images from Assets or upload them.

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijayalakshmi_S

Hi @alex__canva,

In AEM as cloud service, asset create/update is via aem-upload and not via usual Assets HTTP API - https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/developer-reference-material-apis.html?lang=en

 

This blog explains the same by making calls from POSTMAN to cloud service instance - https://medium.com/adobetech/introduction-to-aem-as-a-cloud-service-asset-upload-http-api-fc560ffd7221

But it uses Basic authentication, you can make use of Token type and mention the Local Development Access token (in the actual implementation)which you can get as mentioned here - https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/authentication/local-development-access-token.html?lang=en

 

2 replies

Kishore_Kumar_
Level 9
October 14, 2021

Hi @alex__canva ,

 

Either Service Credentials or Access Token (temp. for development) is required. Please find below link which talks about the same.

 

https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/authentication/overview.html 

Sanjay_Bangar
Community Advisor
Community Advisor
October 14, 2021

Hi @alex__canva ,

      You need to use access token .

Are you using Adobe I/O for  integration.

Regards,

Sanjay

Level 2
October 15, 2021

Hi,
Any examples will be helpful. The current goal is to work with user's Assets (download/upload files) via Assets API.
Thanks in advance.

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
October 19, 2021

Hi @alex__canva,

In AEM as cloud service, asset create/update is via aem-upload and not via usual Assets HTTP API - https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/developer-reference-material-apis.html?lang=en

 

This blog explains the same by making calls from POSTMAN to cloud service instance - https://medium.com/adobetech/introduction-to-aem-as-a-cloud-service-asset-upload-http-api-fc560ffd7221

But it uses Basic authentication, you can make use of Token type and mention the Local Development Access token (in the actual implementation)which you can get as mentioned here - https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/authentication/local-development-access-token.html?lang=en