Domoticz authorization error
Moderators: leecollings, htilburgs, robgeerts
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Domoticz authorization error
If you use http you HAVE to set the setting "Allow Basic-Auth authentication over plain HTTP (API only)" to "On" in menu Setup-Settings, tab Security.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 2262
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Domoticz authorization error
You have to do all the following things:swilting wrote: ↑Thursday 03 August 2023 12:58 I also have this error after I updated to the last version of Domoticz,
Is there one simple solution for the issue
*) updated to the Beta version of Dashticz
*) have my IP range in the "trusted network settings" (was already there) (10.0.0.*)
*) try'd the username / password option in the config.js
In my opinion it just shoud work
I can't see any login attempts in the logging of Domoticz, do i have to switch this on somewhere?
In CONFIG.js add the Domoticz username and password, like
Code: Select all
config['user_name'] = 'admin';
config['pass_word'] = 'domoticz';
- Tick 'Allow Basic-Auth authentication over plain HTTP' in Domoticz->Settings->Security->API protection
- Fill in your local subnet in Trusted Networks
- Attachments
-
- apiprotection2.jpg (79.94 KiB) Viewed 590 times
-
- Posts: 9
- Joined: Wednesday 13 June 2018 10:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Last Sta
- Location: Netherlands
- Contact:
Re: Domoticz authorization error
Thank you, that did the trick
(I still find it strange to set a trusted network IP and then still have to set a username and a password)
(I still find it strange to set a trusted network IP and then still have to set a username and a password)
- kiddigital
- Posts: 435
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Domoticz authorization error
Dashticz should be given access to domoticz’s API either by adding the Dashticz IP-address to the trusted network OR via username and password.
These 2 ways should be mutually exclusive. It is one or the other, never both.
And, in case you access the domoticz API over HTTP instead of HTTPS, you have to enable ‘basic-auth over http’. This is independent of the above option you use to give Dashticz access to domoticz.
Best, prefered and most secure way is to run domoticz with HTTPS enabled and create a specific user for Dashticz to use. Configure Dashticz to access domoticz over HTTPS using the specific username and password.
(Or even better, Dashticz should become able to leverage the OAuth2 functionality of domoticz and access the domoticz API after acquiring an access token. But that is for the future).
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
Who is online
Users browsing this forum: No registered users and 1 guest