Need to integrate client with aem which has oauth enabled

Avatar

Avatar

tasunil1

Avatar

tasunil1

tasunil1

25-03-2020

Hi,

 

We use AEM as a CMS in a C/C++ based product.

we used the traditional username/password approach.

 

we need to integrate the oauth mechanism into our product.

We do not have any custom plugin/packages for AEM written.

 

  1. For login we open a Chromium CEF browser and ask the user to login
Approaches we tried were
  1. uses auth_code from browser and , get access token and use it as a Authorization Bearer token.
  2. uses the entire cookie and extract token and set it as Authorization Bearer 
  3. enable token as request parameter 
  4. set cookie after reading it from the CEF data base
But none of them are working
1,2,3 are giving unauthorized and 4 is giving header too large.
 
How can we use our client with an oauth enabled aem instead of using username and passsword for accessing the normal fucntionalitied e.g to ge the metadata we use 
 
The aem server is inhouse/local
 
Any help/documentation would be great

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

vanegi

Employee

Avatar

vanegi

Employee

vanegi
Employee

14-07-2020

The AEM OAuth server functionality support this directly(AEM as a OAuth server) - Refer https://youtu.be/kk945DABg8Y for more details.

 

Refer https://medium.com/@techforum/social-login-with-linkedin-adobe-experience-manager-aem-53c38ce22780 if you want to enable custom OAuth provider integrations(AEM as OAuth Client).

Answers (0)