Closed dominicbarnes closed 8 years ago
I'm still learning how this /authorizations
endpoint works in the Github API, so we may have to tweak the configuration we use. (namely things like scopes
)
I'm going to be testing out this new flow pretty soon, to make sure the generated token is actually useful before we merge this PR.
All right, after researching, it looks like all duo ever needs is the repo
scope. (w/o a scope, it only has access to public repos, the former gives it access to private ones as well)
That being said, this PR is ready to go! (pending feedback from @duojs/owners)
nice work dude, looks great :-)
This adds a new bin to duo which is expressly dedicated to setting up a
~/.netrc
file for new users:Some sample uses:
The end-result is that the
api.github.com
host for your~/.netrc
will be configured: (while not clobbering any other values in the file)This resolves #37 (and probably others)