Skip to content
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

Can this access private datasets? #60

Closed
adam2392 opened this issue Apr 13, 2022 · 2 comments · Fixed by #74
Closed

Can this access private datasets? #60

adam2392 opened this issue Apr 13, 2022 · 2 comments · Fixed by #74

Comments

@adam2392
Copy link
Contributor

If we want programmatic access to a WIP private dataset, would this be possible?

@hoechenberger
Copy link
Owner

Hey @adam2392,
I don't think this is possible, it depends on whether a WIP dataset is exposed via the public API of OpenNeuro, which is probably not the case for data protection reasons

@wmvanvliet
Copy link
Contributor

It's possible when you use the API token. See PR.

hoechenberger added a commit that referenced this issue Dec 13, 2022
To download restricted datasets, we need to authenticate ourselves using
an API token. This PR adds a new command `openneuro login` to write the
API token to the `~/.openneuro` config file. The `openneuro-py download`
command has been modified to send the token along as a cookie.

fixes #60

Co-authored-by: Richard Höchenberger <richard.hoechenberger@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants