programmatically access AEM as a Cloud Service using service-to-service access token! | Community
Skip to main content
New Participant
July 14, 2022
Solved

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

  • July 14, 2022
  • 2 replies
  • 1006 views

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.
Best answer by aanchal-sikka

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/

2 replies

aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
September 6, 2023

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
Jineet_Vora
New Participant
August 22, 2023

@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