Can I retrieve an un-gated thumbnail from my author instance with the Assets API | Community
Skip to main content
New Participant
Feb 15, 2023 7:53 PM UTC
Solved

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

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.
arunpatidar
arunpatidarAccepted solution
New Participant
Feb 16, 2023 7:45 AM UTC

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

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
Feb 16, 2023 7:45 AM UTC

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/

 

Translate
Arun Patidar