-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Clone from Azure DevOps works fine, but authentication fails when I try to push #16023
Comments
Thanks for the issue @adremeaux. Any chance the access token was created with read-only permissions instead of read/write? That's the only guess I have about why cloning would work, but pushing fails. I'd recommend recreating the token as a first step to see if that gets things working. |
If I recreate the token, how do I set it in GitHub Desktop? The only time it's prompted me for the token is during the clone itself. I'd prefer to not have to clone the entire repo again. |
You know if I jam my token right into the repo url in repo settings (https://login:token@...) it works, but I wager I probably shouldn't do that. |
@adremeaux you can remove the existing token from the Windows Credential Manager, and then you should be prompted to enter it again . |
It does not prompt me to reenter my credentials after removing them.
…On Tue, Jan 31, 2023 at 9:48 AM Steve Ward ***@***.***> wrote:
@adremeaux <https://github.com/adremeaux> you can remove the existing
token from the Windows Credential Manager, and then you should be prompted
to enter it again .
—
Reply to this email directly, view it on GitHub
<#16023 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXBMSYUYJSOBAQR3RKIMODWVEQ5BANCNFSM6AAAAAAUI73IFA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Chiming in to say that this is the message that pops up. I tried removing the azure token from Windows credential manager and it still does not prompt me for anything. (I am also using Azure DevOps and experiencing the same issue. Can push to repo just fine through CLI but does not work with GitHub Desktop). |
I have same problem please answer us !!!! |
Hopefully this is already fixed with the latest auth-related changes #18700 Otherwise let us know and we will reopen it! |
The problem
I cloned my Azure DevOps repo from the instructions on this page: https://github.com/desktop/desktop/blob/development/docs/integrations/azure-devops.md
The clone had some issues with GitLFS but once I sorted that it worked fine. I've tried to make a commit and push it and am getting an auth error. If I try to push via the command line I have to sign into my Microsoft account but then it works fine.
Here is the relevant bit from the logs:
023-01-27T18:19:15.253Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: Plants_Game - adremeaux (has token)
2023-01-27T18:19:31.074Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2023-01-27T18:19:31.622Z - info: [ui] [AppStore] loading 7 repositories from store
2023-01-27T18:19:31.622Z - info: [ui] [AppStore] found account: adremeaux (adremeaux)
2023-01-27T18:19:31.673Z - info: [ui] [BranchPruner] Last prune took place 3 minutes ago - skipping
2023-01-27T18:19:31.769Z - info: [ui] launching: 3.1.4 (Windows 10.0.22621)
2023-01-27T18:19:31.773Z - info: [ui] execPath: 'C:\Users\adrem\AppData\Local\GitHubDesktop\app-3.1.4\GitHubDesktop.exe'
2023-01-27T18:19:32.213Z - info: [ui] Subscribed 'adremeaux' to Alive channel
2023-01-27T18:19:34.948Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: Plants_Game - adremeaux (has token)
2023-01-27T18:20:00.259Z - error: [ui]
git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin
exited with an unexpected code: 128.stderr:
fatal: Authentication failed for '[redacted for privacy]'
(The error was parsed as 3: Authentication failed. Some common reasons include:
Release version
3.1.4
Operating system
Windows 11
Steps to reproduce the behavior
No response
Log files
No response
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: