Traccar OpenID and Home Assistant

Jordan2 months ago

I want to put my Traccar instance on the Internet via a reverse proxy with OID enabled. I had this working, but when OID is enabled and forced the Home Assistant integration can no longer authentication. Same goes for forcing TOTP.

Are there any workarounds for this, such as having a specific user account for HA that does not have 2FA, but can't be used to log on from the web interace or from anything but a specific IP?

Thanks

Anton Tananaev2 months ago

Doesn't home assistant use a token?

Jordan2 months ago

I use this integration, it uses a username and password for authentication. It fails if the integration is reloaded (or HA is restarted) when OID or 2fa is enabled because I guess it uses a session token (I can't see any details in the API documentation).

Anton Tananaev2 months ago

Well, if they are using username and password login, of cause it won't work. They should be using a token.

Jordan2 months ago

Thanks. So what's the answer, the HA integration needs to request a token with unlimited expiration, then OID can be enabled?

Anton Tananaev2 months ago

It should just use an API token.