Using oAuth in AEM 6.5 | Community
Skip to main content
May 22, 2020
Solved

Using oAuth in AEM 6.5

  • May 22, 2020
  • 4 replies
  • 10371 views

Hi, we are running AEM 6.5. We have some application to application connectivity, whereby we have a on-premises Java applicaiton which is calling an API on a cloud hosted AEM 6.5 instance. We want to add in oAuth for the authentication piece, but can not find any sample in the Adobe documenation of how this can be done. We can see examples in older versions of AEM 6.5 but the oAuth libraries in the examples seems to have been removed in the newer AEM versions.

Any assistance would be greatly appreciated!

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 AlbinIs1

Refer the following URL, may help you - https://www.youtube.com/watch?v=kk945DABg8Y

4 replies

Level 2
June 2, 2020

the classes which are mentioned such as com.adobe.granite.oauth.server.ScopeWithPrivileges & com.adobe.granite.oauth.server.Scope these are not working in AEM 6.5. In AEM 6.5 these are not supported anymore.

Also, the OSGi which is mentioned for the allowed scope ‘Adobe Granite OAuth Resource Server’ is not available either.

raghavc
Level 4
May 22, 2020

Hi,

 

If you are planning to use external OAuth provider to access content in AEM, you have to write a bit of custom code, do check the below link. AEM does have a better integration with SAML for this.

 

https://aemcorner.com/adobe-granite-oauth-authentication-handler/

 

If you want to use AEM as OAuth provider then please refer to the links shared by @user05162 .

spriceD24Author
May 26, 2020
Thanks for your help Raghavac!
AlbinIs1Community AdvisorAccepted solution
Community Advisor
May 27, 2020

Refer the following URL, may help you - https://www.youtube.com/watch?v=kk945DABg8Y

Level 2
June 2, 2020
In AEM 6.5, Granite Oauth Server packages are deprecated. These are available in uber-jar-6.5.0.0-apis-with-deprecations.jar. So, unable to use the Scope Classes for Custom Scope.
Level 2
July 11, 2020

You can refer this post fir OAuth integration with AEM (using AEM as an OAuth client)

https://dev.to/thegreyteacher/aem-social-login-google-oauth2-23pf