Request for Guidance: Implementing OAuth2 Authentication in AEMaaCS with Sample Code | Community
Skip to main content
July 24, 2025
Solved

Request for Guidance: Implementing OAuth2 Authentication in AEMaaCS with Sample Code

  • July 24, 2025
  • 1 reply
  • 493 views

Hello,

 

 

 I need to implement OAuth2-based authentication in AEM as a Cloud Service (AEMaaCS). I’d appreciate your guidance on the steps involved in setting this up, and if possible, I’d like to request any code samples or references that can help validate if a user is authenticated successfully.

Specifically, I’m looking for:

  • Steps to configure OAuth2 in AEMaaCS.

  • Required configuration changes (e.g., OSGi settings, dispatcher rules, Adobe IMS if applicable).

  • Any best practices for securing the endpoints or integrating with an identity provider.

  • Sample code to check authentication status on AEM components or servlets.

Your assistance or any reference documentation would be extremely helpful.

Thank you in advance!

 

Regards,

Srinivas

Best answer by shankar__angadi



Hi Srinivas,

OAuth-based authentication is supported on the Publisher tier in AEM as a Cloud Service (AEMaaCS). You can refer to Adobe’s official documentation for guidance on configuring authentication in AEMaaCS:

https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/authentication/authentication

 

Additionally, while the below implementation is in  AEM 6.5 (not AEMaaCS), it offers valuable insights into integrating OAuth 2.0 with AEM using a custom client:

🔗 OAuth 2.0 Client Integration in AEM 6.5 – WillowTree

 

Regards,

Shankar Angadi

 

1 reply

shankar__angadiAccepted solution
July 24, 2025



Hi Srinivas,

OAuth-based authentication is supported on the Publisher tier in AEM as a Cloud Service (AEMaaCS). You can refer to Adobe’s official documentation for guidance on configuring authentication in AEMaaCS:

https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/authentication/authentication

 

Additionally, while the below implementation is in  AEM 6.5 (not AEMaaCS), it offers valuable insights into integrating OAuth 2.0 with AEM using a custom client:

🔗 OAuth 2.0 Client Integration in AEM 6.5 – WillowTree

 

Regards,

Shankar Angadi

 

July 24, 2025