Can I retrieve an un-gated thumbnail from my author instance with the Assets API | Community
Skip to main content
February 15, 2023
Solved

Can I retrieve an un-gated thumbnail from my author instance with the Assets API

  • February 15, 2023
  • 1 reply
  • 603 views

Hi- 

I am retrieving a list of Assets within a folder using the Assets API e.g. 

https://author.myCompany.com/api/assets/company/myDocuments/myFolder.json

and I want to grab the thumbnails to store in a separate platform. I have the URLs but when clicking the URLs require an AEM username/password to be accessed. How can I get around this? Is there an absolute URL I can construct with the jcr:path to get an un-gated thumbnail image from my author instance?

 

Thanks! 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

you can create a proxy servlet that will remove the authentication and serve the thumbnail from path suffix

e.g.#

https://author,host/thumbnails.html#/content/dam/myproject/asset.jpg

 

Example 

https://blogs.perficient.com/2021/11/01/aem-feature-author-preview-servlet/

 

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
February 16, 2023

you can create a proxy servlet that will remove the authentication and serve the thumbnail from path suffix

e.g.#

https://author,host/thumbnails.html#/content/dam/myproject/asset.jpg

 

Example 

https://blogs.perficient.com/2021/11/01/aem-feature-author-preview-servlet/

 

Arun Patidar