Page 1 of 1

"Run if on/off" JSON url dont work if i use "login page" instead of "basic authentication"

Posted: Tuesday 18 October 2016 22:48
by Evelen
I have some wall-buttons connected to my RFXTRX443E that should turn lights on and off.

Like this:
1.png
1.png (242.56 KiB) Viewed 794 times

Code: Select all

ON:
http://flemmingss:PWD@localhost:8080/json.htm?type=command&param=switchlight&idx=36&switchcmd=On
OFF:
http://flemmingss:PWD@localhost:8080/json.htm?type=command&param=switchlight&idx=66&switchcmd=Off
This works fine if i use "Basic-Auth", but if i change it to "logon page" it stops working in like 10 minutes or somthint.
the buttons on the wall works, I can see it in the log.

Code: Select all

2016-10-18 19:18:31.753 (Rfxcom433E USB) Lighting 2 (17B - Bryter)
2016-10-18 19:18:32.905 (Rfxcom433E USB) Lighting 2 (17B - Bryter)
2.png
2.png (52.75 KiB) Viewed 794 times

But the JSON url's works from my browser, phone ect (not localhost), also with "logon page"?

what can be the problem?
I don't want to use the "Basic-Auth" because it works badly with automatic login.

Re: "Run if on/off" JSON url dont work if i use "login page" instead of "basic authentication"

Posted: Friday 21 October 2016 22:10
by Evelen
the same problems also is for JSON url's in Blockly events

Re: "Run if on/off" JSON url dont work if i use "login page" instead of "basic authentication"

Posted: Friday 21 October 2016 23:58
by Egregius
Disable authentication for 127.0.0.1.