OAuth Server-to-Server credential implementation for AEM | Community
Skip to main content
aanchal-sikka
Community Advisor
Community Advisor
May 22, 2023
Solved

OAuth Server-to-Server credential implementation for AEM

  • May 22, 2023
  • 2 replies
  • 1699 views

Hello,

 

We are trying to set-up OAuth Server-to-Server credential implementation for AEM.

References used:

https://developer.adobe.com/developer-console/docs/guides/authentication/ServerToServerAuthentication/implementation/

https://developer.adobe.com/developer-console/docs/guides/authentication/ServerToServerAuthentication/migration/

 

On generating new Oauth credentials https://developer.adobe.com/ there is no corresponding user created in AEM.

 

As per [0], we have tried creating user with "TECHNICAL ACCOUNT EMAIL" and "TECHNICAL ACCOUNT ID" in https://adminconsole.adobe.com/  , but its failing consistently. 

 

 

[0]: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/developing/generating-access-tokens-for-server-side-apis.html?lang=en#set-the-appropriate-permissions-for-the-technical-account-user-in-aem 

 

Requesting suggestions on how to sync OAuth credentials from  https://developer.adobe.com/  to AEM.

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

The Oauth credential set up via  https://developer.adobe.com/  is currently not supported for AEMaaCS.

We need to use Service Credentials created via CM Developer Console instead

 

2 replies

ManviSharma
Adobe Employee
Adobe Employee
May 22, 2023

Hi,

 

To sync OAuth credentials from the Adobe Developer Console to AEM:

  1. Create a Technical Account in the Adobe Developer Console.
  2. Create a user in AEM with the same Technical Account Email and ID.
  3. Assign the required permissions and roles to the user.
  4. Save the user details and ensure it is active.

This establishes the sync between OAuth credentials and AEM.

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAuthorAccepted solution
Community Advisor
October 9, 2023

The Oauth credential set up via  https://developer.adobe.com/  is currently not supported for AEMaaCS.

We need to use Service Credentials created via CM Developer Console instead

 

Aanchal Sikka
August 6, 2024

Hi @aanchal-sikka ,
I hope still this is the same. If we need to use the http API, we have to use the authentication method documented here - https://experienceleague.adobe.com/en/docs/experience-manager-learn/getting-started-with-aem-headless/authentication/service-credentials

Hope this will not get deprecated. I haven't seen an OAuth server-to-server authentication mode available for AEM assets HTTP API. Can you please confirm?
Thanks,
Rahul