Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Using oAuth in AEM 6.5

Avatar

Level 1

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!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
0 Replies

Avatar

Level 2

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.

Avatar

Level 2
In AEM 6.5, Granite Oauth Server packages are deprecated. These are available in uber-jar-6.5.0.0-apis-with-deprecations.jar.

Avatar

Level 5

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 @Jaideep_Brar .

Avatar

Correct answer by
Community Advisor

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

Avatar

Level 2
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.

Avatar

Level 1
In AEM 6.5, we are getting an 'Access Denied' message even after implementing the scope with the required content path.