awtrix3 icon indicating copy to clipboard operation
awtrix3 copied to clipboard

user and Password set in Auth-tab

Open TheFreaker86 opened this issue 1 year ago • 2 comments

Hallo! I have set a username and password in the Auth-tab on the web interface with the goal in mind to restrict access to the web interface and to protect the MQTT-password. After setting the user and pw I rebooted the device and opened the webinterface without any user+pw prompt.

The documentation says Secure the web interface and the API with basic authentication. Every page, API call, and the AWTRIX app will require these login credentials., which sounds to me like the exact tool to use to secure the webinterface.

Isn't it what it is what I think it is? If not, please clarify. Maybe I am misunderstanding the authentication feature provided in the Auth-tab?

Thank you in advance.

TheFreaker86 avatar Jun 03 '25 09:06 TheFreaker86

I did this recently – and yeah, it's exactly like you said. Just make sure that after entering the username and password in the UI panel, you hit "Save configuration" and then "Restart ESP". Without that, authentication won't work.

After the restart, the UI should show a login popup, and any API request will need to include this header: Authorization: Basic {yourusername}:{yourpassword}

mat-jablonski avatar Jul 22 '25 21:07 mat-jablonski

That's what I noticed later too. Thanks for your reply and coincidentally the reminder to close the issue :)

TheFreaker86 avatar Jul 23 '25 15:07 TheFreaker86