Re:JWT Authentication Tutorial: Example Using Spring Boot
by hawkweed on Wednesday September 07, 2016 @03:28AM
(#12441448)
Like @awzurn already explained, in the absence cookies one would need to to pass token through the URL (Signed URL).
Ideally, that token would contain only permission to download that specific file for certain period of time. That said, one additional filter would have to be implemented to look for token in the URL.
I believe that Amazon S3 is doing the same with signing URL requests for file download (http://docs.aws.amazon.com/AmazonCloudFront/latest/Developer... and http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentic...)
Re:JWT Authentication Tutorial: Example Using Spring Boot
by topaxi on Thursday September 08, 2016 @07:44AM
(#12452110)
If you don't mind downloading the whole file into the browsers memory this should do:
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequ... https://developer.mozilla.org/en-US/docs/Web/API/URL/createO...
And then programmatically click the object URL.
Our workaround for this was to have our filter also look the JWT in a query parameter on the URL.