Expand my Community achievements bar.

SOLVED

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

Avatar

Level 1

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! 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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