programmatically access AEM as a Cloud Service using service-to-service access token! | Community
Skip to main content
Level 3
Jul 14, 2022 3:29 AM UTC
Solved

programmatically access AEM as a Cloud Service using service-to-service access token!

Hi Team,

below is the link which documents how to programmatically access AEM as a Cloud Service using service-to-service access token! using node js. and they have provided link of sample code for other languages at the end of the doc which is not working.

 

How to programmatically access AEM as a Cloud Service using service-to-service access token! using java ?

 

https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/authentication/service-credentials.html?lang=en 

 

 

Thank you,

Sriram

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
Sep 6, 2023 1:58 PM UTC

Hello @sriram_1 

 

Please find below the link of the Blog where a java code snippet is available.

It generates JWT token, and then access token from Service account credentials.

https://techrevel.blog/2023/09/06/access-restricted-resources-on-aemaacs-with-java-and-service-accounts/

Aanchal Sikka

2 replies

aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
Sep 6, 2023 1:58 PM UTC

Hello @sriram_1 

 

Please find below the link of the Blog where a java code snippet is available.

It generates JWT token, and then access token from Service account credentials.

https://techrevel.blog/2023/09/06/access-restricted-resources-on-aemaacs-with-java-and-service-accounts/

Translate
Aanchal Sikka
Jineet_Vora
New Participant
Aug 22, 2023 10:22 AM UTC

@sriram_1 - Is there any specific error you are facing while programmatically accessing AEMaaCS using Service Credentials?

Also, where exactly the error is seen?

 

1. Calling AEM Cloud for JWT? or

2. Calling AEM Cloud for access token using JWT?

 

Please check this link as well on how to connect using node JS: https://www.npmjs.com/package/@adobe/jwt-auth

 

- Jineet

Translate