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

Basic authentication fails with special characters in password #5781

Closed
jpraet opened this issue Mar 7, 2024 · 1 comment · Fixed by #5789
Closed

Basic authentication fails with special characters in password #5781

jpraet opened this issue Mar 7, 2024 · 1 comment · Fixed by #5789
Assignees
Labels
Milestone

Comments

@jpraet
Copy link
Contributor

jpraet commented Mar 7, 2024

I am trying to connect to an OpenShift cluster with username / password. My password contains a "£" character.

String encoded = Base64.getEncoder().encodeToString(usernameAndPassword.getBytes(StandardCharsets.ISO_8859_1));

I think maybe it should be usernameAndPassword.getBytes(StandardCharsets.UTF_8)?

@shawkins
Copy link
Contributor

shawkins commented Mar 8, 2024

I think maybe it should be usernameAndPassword.getBytes(StandardCharsets.UTF_8)?

Yes it probably should be - can you open a pr for that?

@manusa manusa added the bug label Mar 11, 2024
@manusa manusa added this to the 6.11.0 milestone Mar 11, 2024
shawkins added a commit to jpraet/kubernetes-client that referenced this issue Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants