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.
Have you already gone through the docs at  and sample code at 
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.
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.
If you want to use AEM as OAuth provider then please refer to the links shared by @jbrar .