Skip to content

Support GitHub 2-factor authentication #6

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

Merged
merged 2 commits into from
Apr 18, 2014
Merged

Support GitHub 2-factor authentication #6

merged 2 commits into from
Apr 18, 2014

Conversation

ctrueden
Copy link
Member

It works by passing the auth code via the GITHUB_TWO_FACTOR environment variable.

Unfortunately, the patch is really ugly. I tried assigning the header flags to CURL_OPTS and just passing that, but the quoting is really hard to get right. This patch is testing and working for 2-factor, at least.

@ctrueden
Copy link
Member Author

@dscho: If your superior script-fu can fix the ugliness, great, but I couldn't get anything simpler than this working in a reasonable amount of time.

dscho and others added 2 commits April 18, 2014 14:26
... in preparation for two-factor authentication...

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
GitHub requires a special header when two-factor authentication is
enabled.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho
Copy link
Contributor

dscho commented Apr 18, 2014

@ctrueden could you give this version a quick try?

@ctrueden ctrueden merged commit d53b570 into master Apr 18, 2014
@ctrueden ctrueden deleted the two-factor branch April 18, 2014 19:41
@ctrueden
Copy link
Member Author

It works! Thank you for fixing it up.

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 this pull request may close these issues.

2 participants