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

git client integration for 2FA #27888

Closed
ghost opened this issue Nov 3, 2023 · 4 comments
Closed

git client integration for 2FA #27888

ghost opened this issue Nov 3, 2023 · 4 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@ghost
Copy link

ghost commented Nov 3, 2023

Feature Description

when cloning from Github using http, git (windows) will open a browser for login and then configures the remote of the repo automatically, users can even use 2FA for better security.

this will save tons of hours of getting the auth passwords manually.

Screenshots

No response

@ghost ghost added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Nov 3, 2023
@ghost ghost changed the title git client integration for login when cloning using http git client integration for browser-based login when cloning using http Nov 3, 2023
@lunny
Copy link
Member

lunny commented Nov 3, 2023

This has been resolved by #26291

@lunny lunny added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Nov 3, 2023
@ghost
Copy link
Author

ghost commented Nov 3, 2023

@lunny
I tired and it prompt for username and password, but then it says:

Users with two-factor authentication enabled cannot perform HTTP/HTTPS operations via plain username and password. Please create and use a personal access token on the user settings page

Do I need to configure my local git or gitea to enable #26291

@ghost ghost changed the title git client integration for browser-based login when cloning using http git client integration for 2FA Nov 3, 2023
@JakobDev
Copy link
Contributor

JakobDev commented Nov 3, 2023

The PR is part of 1.21, which is not releases yet, but you can create the 2 Apps yourself.

@GiteaBot
Copy link
Contributor

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

3 participants