plone / plone_client

4 stars 2 forks source link

Manage authentication when downloading files #3

Open ebrehault opened 8 years ago

ebrehault commented 8 years ago

Our Plone pages will contain links to downloadable files. JWT is based on HTTP headers. It works fine with AJAX calls, but we are not able to set the needed header when the user clicks on a link to download a file.

I can see 2 possible solutions:

I like the second approach, but it makes HTTPS mandatory (which is ok, I think). @bloodbare what do you think?

bloodbare commented 8 years ago

I also like the second approach, maybe we will need also the first approach or an angular2 view that encapsulates the download to enable sending links to files that are downloadable.