mgeisler / swift-browser

AngularJS interface for OpenStack Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open and Download buttons don't work with swauth

mgeisler opened this issue · comments

In an swauth environment, no cookie is being set when logging in. This is no problem for Swift Browser itself since it includes the X-Auth-Token header in every request. But the Open and Download buttons link directly to the object and don't work since the browser just does a plain, unauthenticated GET request.

Workaround: make the request with JavaScript and offer the file for save? I think that's possible with the HTML 5 file APIs. We should take care not to buffer the entire object in memory if we go this route.