Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

oAuth access programmatically for AEMaaCS

Avatar

Employee

Hi,

We have a requirement to automate the aem api call. How to add the oAuth in our code as authentication to access the our cloud env programmatically and make api call?

Thank You.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Community Advisor and Adobe Champion

Hi @Keerthana_H_N,

You can generate Integration accounts/tokens in the Developer Console. See https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/dev...

 

Good luck,

Daniel

Avatar

Employee

Hi @daniel-strmecki 

Thanks for your reply,

We need to authenticate the AEM API using a bearer token, obtained via an OAuth token, as JWT tokens are now deprecated for AEM Cloud. The token should be fetched using an integration account.

Our primary challenge is establishing this connection with AEM Cloud using Java (not JavaScript). Could you suggest a solution or provide guidance on achieving this?

 

Thanks

Avatar

Level 2

Hi @Keerthana_H_N,

 

For AEM Integration (Technical) accounts, Oauth is not supported and it relies on JWT for authentication. From Adobe's official documentation:

"The AEM Developer Console (note the AEM in the name, which distinguishes it from the Adobe Developer Console) provides a utility to generate JWT tokens used for server-to-server APIs. These credentials are not deprecated and can continue to be used."

Link: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/security/jwt-cre...

 

Documentation for setting up integration accounts in AEMaaCS: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/dev...

 

Sample code to generate JWT payload in different programming languages: https://developer.adobe.com/developer-console/docs/guides/authentication/JWT/samples/

 

fyi - @PriyankaKu

 

Hope this helps,

Vinay