Syrex-o / FhemNative

Cross Platform FHEM-HomeAutomation Frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Password issue

Eragos opened this issue · comments

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

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

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