-
Notifications
You must be signed in to change notification settings - Fork 0
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
How to setup OSF token #13
Comments
The code doesn't support tokens. I happen to know it could, from when I was helping out https://github.com/datalad/datalad-osf, but we'd have to patch it: Lines 13 to 28 in 8eafe10
Is your problem that it's "manual"? Meaning when you say "manually" it prompts? I don't see that anywhere in the code. Are you running it from pycharm and having to fill in the variables in some GUI each time? You can pass the credentials in like this
which makes them available to
Another direction (and this is sort of the 'conventional' solution) puts them in your
this makes them available to any app running in your session or any app that can read files in your folder, so the cybersecurity of that isn't great. But I think this is what we did with AWS for spine-generic. A third solution, one I use but am still getting the hang of, is to keep my passwords in a password manager --
For you, you can use the
Also, maybe you're already using a password manager? If you're using LastPass then use https://github.com/lastpass/lastpass-cli in place. I think we can patch |
In summary:
In the meantime, I'll patch the token auth in so that you can put tokens in |
yup! it is documented here under the osf section. i'd like to avoid putting the OSF password in my .bashrc i like the pass/security approaches, but it is specific to my config, so we cannot document it in the README as the "universal" approach. My problem is that: everytime i want to use distriploy, i forget how to use it, so i quickly read the doc and re-enter those password manually.
yes, that's what i'm using. And yes, an OSF_TOKEN would be convenient, although:
thank you for the thorough response!!! |
Even with token support you'd still have to. I don't read the README as giving a universal approach, it's just giving some suggestions. It also suggests "Or add it to an environment file not under revision control" -- which would be your Is the
form not good enough? It's a shorthand form of the There isn't really a way to make this any faster without writing your password down in a file, which it sounds like you don't want to do for good reason. If you want your passwords to represent you then you need to type them in each time. Maybe what you could do is put
in your We could also make this more user friendly by making distriploy prompt if the password is missing. |
👌 |
Currently, I have to manually enter OSF username/password to be able to push on OSF.
I'd like to be able to use OSF token.
Can someone please document how to do this?
The text was updated successfully, but these errors were encountered: