Expand my Community achievements bar.

Get ready! An upgraded Experience League Community experience is coming in January.

Integrating azure entra id with AEM 6.5 for oauth2 credentials grant type to access aem servlet

Avatar

Level 1

Hello,

We want to integrate azure ad/azure entra id as oauth2 provider where third party application can access aem servlet(author environment) by getting access token from azure using client credentials grant type(2 legged authentication).

 

I am not finding any good documentation for it.

 

 

Thanks

2 Replies

Avatar

Community Advisor

Hi @varun2412 ,

 As per my understanding AEM supports 3 legged Oauth. But for 2 legged, the implementation would be same as 3-legged except you won't pass token and secret but empty strings. Client Application will need to have its client ID and secret stored in a secure manner.
 You can follow below links:-
 https://www.albinsblog.com/2017/07/exposing-resources-through-oauth-aem.html#.XJByjSIzbIW 
OAuth Server functionality in AEM - Embrace Federation and unleash your REST APIs!

 

 

-Tarun

Avatar

Level 1

Hi @TarunKumar 

 

Article which you sent...still showing 3 legged oauth.

We want to skip authorization step and directly get access token from azure ad and call aem servlet.

It is server-to-servet. Securing it by oauth instead of basic auth.

 

In which step we need to pass empty string? Is there any working example of it?

 

Thanks.