-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add authentication and authorization to the Access (download) API. #1228
Comments
Leonid, On 12/9/2014 2:29 PM, landreev wrote:
Akio Sone |
In #1226 I described the problem but not the solution. Heads up to @raprasad that this upcoming change will likely affect geoconnect, which downloads files. Since TwoRavens is client-side, I'm not sure if @vjdorazio and @tercer need to know about the upcoming change. |
@akio-sone : |
Authentication and authorization should now be enforced by all download API (everything under /api/access/*) How it works: important! The API supports BOTH session-based and API token-based auth. It will first check the In practical terms: Suppose you have an unreleased and/or restricted dataset with some files in it. How it works with TwoRavens: When the DatasetPage generates the URL for the TwoRavens app, it now sends along the API token for the session user. And the TwoRavens app has been modified to use the token when downloading tabular and preprocessed data from the dataverse (both from javascript and R code). I have upgraded TR on both dvn-build and dataverse-demo. How it works with multiple files downloads: If the user isn't authorized (by session or token) to download ANY of the files requested, "access denied" is returned. |
Great description @landreev Does this handle terms of use? Or is that part of another github issue (not On Dec 11, 2014, at 5:51 PM, landreev notifications@github.com wrote: Authentication and authorization should now be enforced by all download API How it works: important! The API supports BOTH session-based and API token-based auth. In practical terms: Suppose you have an unreleased and/or restricted How it works with TwoRavens: When the DatasetPage generates the URL for the TwoRavens app, it now sends I have upgraded TR on both dvn-build and dataverse-demo. How it works with multiple files downloads: If the user isn't authorized (by session or token) to download ANY of the Reply to this email directly or view it on GitHub |
…ode now checks if the token is a WorldMap token and evaluates it appropriately. Related #1228
Close #72. Related IQSS/dataverse#1228
… from the files Download dropdown button. [ref #1228]
(Sorry for the erroneous ref in my last commit.) |
This was tested for beta 10, closing. |
There was no ticket for this; and it's fairly important.
The text was updated successfully, but these errors were encountered: