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

Tighter integration with datalad credential management #92

Closed
mih opened this issue Jun 19, 2020 · 2 comments · Fixed by #105
Closed

Tighter integration with datalad credential management #92

mih opened this issue Jun 19, 2020 · 2 comments · Fixed by #105
Labels
enhancement New feature or request

Comments

@mih
Copy link
Member

mih commented Jun 19, 2020

At the moment, the special remote expects OSF_TOKEN (or the fallback user/pass) environment variables to be present, as the only way to provide credentials. The test infrastructure, however, already interfaces with DataLad's credential access tooling.

I'd say, if DataLad is found (which in the present setup is pretty much guaranteed), it should also do that in the special remote.

@mih mih added the enhancement New feature or request label Jun 19, 2020
@mih
Copy link
Member Author

mih commented Jun 20, 2020

Mostly addressed in #95

What is still missing is a small osf-setup command that asks for the credentials, and/or optionally creates a token via the API (if that is possible).

@mih
Copy link
Member Author

mih commented Jun 20, 2020

It would make sense to me to support a scenario where a dataset itself contains an OSF auth token. This is similar to git-annex's "shared" encryption model. The token could be placed into .datalad/config and we would need to make sure that it is used for a particular dataset. A complication might be that sometimes a user might have dedicated auth configured for their personal account, while an embedded access token gives access to additional projects that their actual OSF has no access to.

Related: datalad/datalad#4135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant