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

Password issue #32

Open
Eragos opened this issue Nov 12, 2023 · 2 comments
Open

Password issue #32

Eragos opened this issue Nov 12, 2023 · 2 comments

Comments

@Eragos
Copy link

Eragos commented Nov 12, 2023

I tried this from the App Store version, but i have a hashtag (#) the end of my password and it’s failing. Saw that is converted to %23 that is wrong!

Cheers
Michael

@Syrex-o
Copy link
Owner

Syrex-o commented Jan 2, 2024

Sorry for replying that late.
The User and Password function uses: encodeURIComponent() to:

Encodes a text string as a valid component of a Uniform Resource Identifier (URI).

I have to make this optional. Noted for the next release.

BR

@Syrex-o
Copy link
Owner

Syrex-o commented Jan 2, 2024

I justed tested a lot.
If I change the current way of handling this, a lot of users will get problems.
@Eragos do you have the possibility to create the base64 string for fhem basicAuth with encoded UTF-8 characters?

Update
I also tested the following:

  • base64 generation with #: echo -n demo#:#demo2 | base64
  • FHEM basicAuth attr: ZGVtbyM6I2RlbW8y
  • FhemNative login: BasicAuth: true, user: demo#, pass: #demo2

This works fine for me. I get the correct Basic Auth Header

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