Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

how we can secure our Assets REST API?

Avatar

Level 4

I am working on AEM and SPA, here I want to use Assets REST API but want to know how I can secure our Assets REST API.

 

how we can configure OAuth with Assets REST API?

 

If there is any suggestion/example it will really helpful.

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi @Abhishekty : To take the advantage of the Oauth authentication mechanism, depending upon the use case, some custom development might be required.


Please refer the below article on How to Manage the Protected AEM Resources through OAuth 2.0
https://medium.com/tech-learnings/how-to-manage-the-protected-aem-resources-through-oauth-2-0-851ce4...

View solution in original post

2 Replies

Avatar

Correct answer by
Level 2

Hi @Abhishekty : To take the advantage of the Oauth authentication mechanism, depending upon the use case, some custom development might be required.


Please refer the below article on How to Manage the Protected AEM Resources through OAuth 2.0
https://medium.com/tech-learnings/how-to-manage-the-protected-aem-resources-through-oauth-2-0-851ce4...

Avatar

Employee Advisor

@Abhishekty For reading yes it would be a good way to proceed with Oauth.

AEM provides three scopes:

  • Profile
  • Offline access
  • Replicate

AEM’s extensible OAuth scopes allow other custom scopes to be defined. For example, a custom scope can be developed and deployed to AEM.

 

have a look at the below samples:

 

https://experienceleague.adobe.com/docs/experience-manager-gems-events/assets/oauth-server-functiona...

 

https://github.com/Adobe-Consulting-Services/acs-aem-samples/tree/legacy/bundle/src/main/java/com/ad...