Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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-refe...

Vijayalakshmi_S_0-1634657726243.png

 

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-fc560ffd72...

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/a...

 

View solution in original post

4 Replies

Avatar

Level 10

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/a... 

Avatar

Community Advisor

Hi @Alex__Canva ,

      You need to use access token .

Are you using Adobe I/O for  integration.

Regards,

Sanjay

Avatar

Level 2

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.

Avatar

Correct answer by
Level 10

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-refe...

Vijayalakshmi_S_0-1634657726243.png

 

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-fc560ffd72...

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/a...