Authentication Failure - Authentication Failed - GitHub Desktop (OAuth) problem (no problem with git bash)

There are problem of Authentication in GitHub Desktop.

The user account has all right on the machine, he is administrator.

No problem with git “bash” for Windows x64, the GitHub verification window is opened and in the browser too:

First launch in C:\Users\USER\AppData\Roaming\GitHub Desktop\logs file:

error: [main] Failed inserting bin path into PATH environment variable
Error: Could not find PATH environment variable
at q (C:\Users\USER\AppData\Local\SquirrelTemp\webpack:\app\src\lib\process\win32.ts:26:9)
at Q (C:\Users\USER\AppData\Local\SquirrelTemp\webpack:\app\src\main-process\squirrel-updater.ts:54:19)
at C:\Users\USER\AppData\Local\SquirrelTemp\webpack:\app\src\main-process\squirrel-updater.ts:39:38
info: [main] Received possible protocol arguments: 2
error: [main] Malformed launch arguments received: C:\Users\USER\AppData\Local\GitHubDesktop\app-2.6.2\GitHubDesktop.exe,–squirrel-firstrun

Try to add authentification: File -> Options -> Accounts - > Github.com Sign in -> Continue with browser:

info: [ui] [SignInStore] initializing OAuth flow
info: [main] opening in browser: https://github.com/login/oauth/authorize?client_id=CLIENTID&scope=repo%20user%20workflow&state=STATE
info: [main] Received possible protocol arguments: 3
error: [main] Malformed launch arguments received: C:\Users\USER\AppData\Local\GitHubDesktop\app-2.6.2\GitHubDesktop.exe,–allow-file-access-from-files,x-github-desktop-auth://oauth?code=CODE&state=STATE
info: [main] Received possible protocol arguments: 2
error: [main] Malformed launch arguments received: C:\Users\USER\AppData\Local\GitHubDesktop\app-2.6.2\GitHubDesktop.exe,x-github-desktop-auth://oauth?code=CODE&state=STATE

The problem is not new.

GitHub Desktop has been removed from “Programs and Features” in Windows.
Reinstalled, removed again…

Same for GitHub Desktop folders:

  • C:\Users\USER\AppData\Local\GitHubDesktop
  • C:\Users\USER\AppData\Roaming\GitHub Desktop
  • C:\Users\USER\AppData\Local\SquirrelTemp

I have removed my original Desktop [Authorized OAuth Apps] in https://github.com/settings/connections/applications/

Now, I have:

  • [GitHub Desktop]
  • Never used · Owned by desktop

The problem is always here.

Logs:

info: [ui] [SignInStore] initializing OAuth flow
info: [main] opening in browser: https://github.com/login/oauth/authorize?client_id=CLIENT_ID&scope=repo%20user%20workflow&state=STATE
info: [main] Received possible protocol arguments: 3
error: [main] Malformed launch arguments received: C:\Users\USER\AppData\Local\GitHubDesktop\app-2.6.2\GitHubDesktop.exe,–allow-file-access-from-files,x-github-desktop-auth://oauth?code=CODE&state=STATE
info: [main] Received possible protocol arguments: 2
error: [main] Malformed launch arguments received: C:\Users\USER\AppData\Local\GitHubDesktop\app-2.6.2\GitHubDesktop.exe,x-github-desktop-auth://oauth?code=CODE&state=STATE

cc @steveward.

The problem is linked to Firefox.

GitHub Desktop must to update the client to support Firefox.

1 Like

Thanks for the report @neustradamus. Does changing your default browser to Google Chrome or Microsoft EDGE resolve the issue?

@steveward: No I can not change default browser to Google Chrome or Microsoft Edge…

It is possible to add a fix for Mozilla Firefox?

Can you unban me from github.com/desktop?

For me the issue was indeed fixed by temporarily (!) making Edge my default browser.
When can we expect a fix for the fox?
I expect that would help many people.