Using oAuth in AEM 6.5 | Community
Skip to main content
New Participant
May 22, 2020 10:41 AM UTC
Solved

Using oAuth in AEM 6.5

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.
AlbinIs1Accepted solution
Level 2
May 27, 2020 2:40 AM UTC

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

9 replies

Level 2
Jul 11, 2020 6:35 PM UTC

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

Translate
AlbinIs1Accepted solution
Level 2
May 27, 2020 2:40 AM UTC

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

Translate
Level 2
Jun 2, 2020 12:46 PM UTC
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.
Translate
raghavc
Level 4
May 22, 2020 6:26 PM UTC

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 .

Translate
spriceD24Author
New Participant
May 26, 2020 8:52 PM UTC
Thanks for your help Raghavac!
Translate
Level 2
Jun 2, 2020 10:43 AM UTC

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.

Translate