Skip to content

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.

3 participants