scijava / scijava-scripts

Shell scripts for scientific projects written in Java
The Unlicense
15 stars 16 forks source link

Support GitHub 2-factor authentication #6

Closed ctrueden closed 10 years ago

ctrueden commented 10 years ago

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 commented 10 years ago

@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 commented 10 years ago

@ctrueden could you give this version a quick try?

ctrueden commented 10 years ago

It works! Thank you for fixing it up.