我正在尝试授权用户并取回令牌。用户已启用两因素身份验证。
这是我尝试使用的代码。它不会接受我通过短信获得的代码。如果用户未启用 2fa,则此方法有效。
curl -i -u $user -H "X-GitHub-OTP: $code" \
-d '{"scopes": [ "repo" ], "note": "program"}' \
https://api.github.com/authorizations
http://developer.github.com/v3/auth/#working-with-two-factor-authentication http://developer.github.com/v3/auth/#working-with-two-factor-authentication
http://developer.github.com/v3/oauth/#create-a-new-authorization http://developer.github.com/v3/oauth/#create-a-new-authorization
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)