Skip to content
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

[feat] Implement Login to GitHub with 2FA Support #1083

Open
yixinNB opened this issue Sep 6, 2024 · 0 comments
Open

[feat] Implement Login to GitHub with 2FA Support #1083

yixinNB opened this issue Sep 6, 2024 · 0 comments

Comments

@yixinNB
Copy link

yixinNB commented Sep 6, 2024

I'm attempting to clone a private GitHub repository via HTTPS, as mandated by my work requirements. However, I'm encountering difficulties with the login process.

I have attempted to use Cred::userpass_plaintext as a credential callback to provide my username and password, but I've realized that this approach doesn't work when two-factor authentication (2FA) is enabled on the GitHub account.
Given this scenario, I need to find an alternative method to authenticate and clone the private repository, while still adhering to the HTTPS protocol. Are there any recommended practices or solutions that can help me achieve this, considering the 2FA requirement?

@yixinNB yixinNB changed the title [feat] Login to GitHub with 2FA Support [feat] Implement Login to GitHub with 2FA Support Sep 6, 2024
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

No branches or pull requests

1 participant