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!
Solved! Go to Solution.
Refer the following URL, may help you - https://www.youtube.com/watch?v=kk945DABg8Y
Have you already gone through the docs at [1] and sample code at [2]
[1]
https://labs.tadigital.com/index.php/2017/08/18/aem-as-oauth-server-part-1-setting-up-scopes/
[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.
Views
Replies
Total Likes
Views
Replies
Total Likes
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 .
Views
Replies
Total Likes
Refer the following URL, may help you - https://www.youtube.com/watch?v=kk945DABg8Y
Views
Replies
Total Likes
Views
Replies
Total Likes
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