dataverse-frontend
dataverse-frontend copied to clipboard
Update getFileThumbnailById implementation to use authentication
Overview of the Feature Request
We need to update the implementation of the getFileThumbnailById
method of the FileJSDataverseRepository to incorporate authentication. This update is necessary once the Data Access API is enhanced to support new authentication methods (currently it is using cookie authentication)
What kind of user is the feature intended for?
All of them
What inspired the request?
The inspiration behind this feature request is to enhance security and access control for the getFileThumbnailById
functionality. With the introduction of new authentication methods in the Access Data API, it is essential to align the getFileThumbnails
implementation accordingly to ensure secure access to file thumbnails.
What existing behavior do you want changed?
Currently, the getFileThumbnails
function does not utilize authentication when retrieving file thumbnails. The Access Data API is using the cookie authentication by default, but this would be removed in the future, so in that moment we'll need to update the SPA implementation.
Any brand new behavior do you want to add to Dataverse?
Modify the getFileThumbnails
implementation to incorporate authentication based on the updated Access Data API.
With this feature, the getFileThumbnails
function will use the latest authentication methods provided by the Access Data API to ensure that only authorized users can access file thumbnails.
Any open or closed issues related to this feature request?
- #130