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

Certain Characters in Passwords Cause Authentication Error in GIT Client #903

Open
Skinnix opened this issue Feb 1, 2023 · 1 comment
Open

Comments

@Skinnix
Copy link

Skinnix commented Feb 1, 2023

Similar to #704, when you have a German umlaut (in this case "ä") in your password, you can log into the web interface but authentication in the GIT client fails (tested with Tortoise and Sourcetree). Removing the Umlaut fixed the issue but this may not always be an option.

The error occurred when using Windows authentication.

@Abubakarstu
Copy link

Here are some possible solutions or workarounds:

  1. Change the Encoding in the GIT Client
    Ensure that the GIT client is using the correct character encoding, typically UTF-8, which can handle umlauts and other special characters. Some clients allow you to configure this in the settings.
  2. Use an Access Token Instead of Password
    If your GIT hosting service supports it (e.g., GitHub, GitLab, Bitbucket), you could generate a personal access token and use that instead of your password. This bypasses the issue of character encoding in passwords.
  3. Escape the Umlaut
    In some cases, encoding the umlaut character using percent encoding (for example, "ä" as %C3%A4) might resolve the issue. However, this depends on whether the client allows you to enter percent-encoded characters in the password field.
  4. Ensure Consistent Locale Settings
    Verify that the locale settings on your system are consistent across all applications. If your system locale or keyboard settings differ between the web browser and the GIT clients, it could cause issues with how special characters are interpreted.
  5. Update GIT Clients
    Ensure that both Tortoise and Sourcetree are updated to the latest versions, as newer releases may have fixed issues related to character encoding in authentication processes.
  6. Check for Known Issues
    Look through the bug trackers or forums of the GIT client software (Tortoise, Sourcetree) to see if this issue has been reported and if there are any patches or fixes available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants