json commands protected

On various Hardware and OS systems: pi / windows / routers / nas, etc
Post Reply
User avatar
maximaxi
Posts: 6
Joined: Sunday 17 April 2016 13:33
Target OS: Raspberry Pi
Domoticz version: 4.9957
Location: Pavia Italy
Contact:

json commands protected

Post by maximaxi » Friday 12 October 2018 15:58

I ask for help
version of domoticz V4.9700
Chrome browser
domoticz, settings, site protection, login page
Also this time it is probable that I am losing myself in a glass of water
I can not send protected Json HTTP commands with user and password
I followed the documentation but I never get anything done
401 Unauthorized
if I open a window in the browser and I log in with domoticz it works correctly

the command I use as an example and this
____http://massimo:password@192.168.1.248:8080/json.htm?type=command&param=getlightswitches_____
someone can help me Thanks

User avatar
emme
Posts: 954
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: json commands protected

Post by emme » Friday 12 October 2018 16:09

Have you setted BASIC-AUTH in the Protection settings?
Cattura-1.jpg
Cattura-1.jpg (27.79 KiB) Viewed 133 times
The most dangerous phrase in any language is:
"We always done this way"

User avatar
maximaxi
Posts: 6
Joined: Sunday 17 April 2016 13:33
Target OS: Raspberry Pi
Domoticz version: 4.9957
Location: Pavia Italy
Contact:

Re: json commands protected

Post by maximaxi » Friday 12 October 2018 16:22

Thank you
Resolved
I imagined losing myself in a glass of water ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests