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 credential popup asking for username but needs password #5258

Open
bonbon2000 opened this issue Oct 22, 2024 · 3 comments
Open

Git credential popup asking for username but needs password #5258

bonbon2000 opened this issue Oct 22, 2024 · 3 comments
Labels
auth* Issues with authentication and authorisation, usually with forges bug Something isn't working

Comments

@bonbon2000
Copy link

bonbon2000 commented Oct 22, 2024

Version

0.13.4

Operating System

macOS

Distribution Method

dmg (Apple Silicon)

Describe the issue

I just updated git password (Bitbucket account). GitButler now asks me for updated credentials. In the popup it says "provide username" but on "Submit" I get error "Password is missing". I never get a prompt asking me for the password.
Screenshot 2024-10-22 at 09 42 14

How to reproduce

No response

Expected behavior

Should be able to successfully update git logins from the app

Relevant log output

No response

@bonbon2000 bonbon2000 added the bug Something isn't working label Oct 22, 2024
@bonbon2000
Copy link
Author

Workaround was made by doing a regular "git fetch" from the terminal and get prompted correctly from there.

@Byron Byron added the auth* Issues with authentication and authorisation, usually with forges label Oct 22, 2024
@Byron
Copy link
Collaborator

Byron commented Oct 22, 2024

Thanks a lot for reporting.

Without knowing exactly the cause, the error is produced by GitButler and originates here:

let response = on_prompt(prompt.clone(), extra.clone()).await;
if let Some(response) = response {
sock.write_line(&response).await.map_err(Error::<E>::AskpassIo)?;
} else {
return Err(Error::<E>::NeedsAuthorization(prompt));
}

It looks like the prompt didn't yield anything, even though from what I understand, it only showed once and then never again (in the same GitButler session?).

@bonbon2000
Copy link
Author

I got a prompt asking for username, and was expecting another for password but that one never appeared, instead an error that said I never passed in a password. So I would guess there is a state-mismatch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth* Issues with authentication and authorisation, usually with forges bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants