JetpackDuba / Gitnuro

A FOSS Git multiplatform client for newbies and pros
https://gitnuro.com/
GNU General Public License v3.0
869 stars 44 forks source link

MFA Auth failed #191

Closed CraftoHohenvels closed 6 months ago

CraftoHohenvels commented 7 months ago

Describe the bug I can't tell what is causing this issue, but I can assume it has something to do with MFA. I have had similar issues in the past with git via the Linux cli and therefore I had to use the browser to log in. The problem I am facing is that whenever I try to clone a repo from a organization (which requires us to enable MFA) from GitHub the authentication windows opens and ask me to enter my details. As I submit the form the same window opens again with no information about what happened. But if I close the window this is what I see image (certainly hope the image is visible)

To Reproduce I can really just make an educated guess right here

  1. Enable MFA on GitHub
  2. Clone a repo from GH
  3. et voilà

Expected behavior I would expect Gitnuro to properly clone the repo or at least to display an error message.

Desktop (please complete the following information):

JetpackDuba commented 7 months ago

Isn't using your user name and a personal token enough? I'm not really sure why MFA would matter in this case.

CraftoHohenvels commented 6 months ago

With personal token do you refer to my password or something else? As I said on Linux I had to configure git to use the GitHub authentication, which is configured using the web app - which uses MFA

JetpackDuba commented 6 months ago

I mean this https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens

If you want to use the web authentication, you can setup Git Credentials Manager as shown in the README.

CraftoHohenvels commented 6 months ago

I will try it with access tokens and the git credentials manager and then report back

CraftoHohenvels commented 6 months ago

I tried it using a PAT. It works now! Thanks for your help, from my side the ticket is resolved.

JetpackDuba commented 6 months ago

I'm glad it works :)

I'd recomment using Git Credentials Manager so you can completly forget about using tokens or other credentials, makes everything much easier.

As you prefer, of course.