hassio-addons / addon-traccar

Traccar - Home Assistant Community Add-ons
https://addons.community
MIT License
127 stars 31 forks source link

Enable TOTP? #291

Closed shanelord01 closed 9 months ago

shanelord01 commented 9 months ago

Hi team,

I’ve looked but can’t find how to enable TOTP for Traccar logins to the server (was introduced in 5.1 Traccar).

Is this possible in the Home Assistant add-on?

If so can you let me know how?

Thanks

shanelord01 commented 9 months ago

OK - worked it out. For others, this can be enabled via the WebUI as an Administrator.

Go into Settings/Server and select "Atrributes" then "Add". Click in the Attribute field and select the "Enable One-time Password" setting and click "Add"

Screenshot 2024-02-19 at 2 17 25 pm

Then click in the check box next to the newly added Attribute, and click "Save"

Screenshot 2024-02-19 at 2 19 01 pm

Then go into your user settings and either edit a user, or add a user. For the "One-time Password Key" field click the refresh (arrows in a circle) which will give you a code - enter this as the code into your Google Auth or 1Password or similar OTP field for the login for the user and save it.

Save the user and when they login, after entering their username and password they will be prompted for the OTP.

Note: You can also add another Attribute on the server ("Force One-time Password") if you want to force users to use OTP's as well.