BeryJu / hass-auth-header

Home Assistant custom component, which allows you to delegate authentication to a reverse proxy.
GNU General Public License v3.0
219 stars 18 forks source link

Support for access token? #298

Open Arragon5xpwm opened 7 months ago

Arragon5xpwm commented 7 months ago

After switching to auth headers, the Alexa skill (https://www.home-assistant.io/integrations/alexa.intent/) seems no longer be able to authenticate via access token.

BeryJu commented 6 months ago

This component shouldn't interfere with this, however you'll have to allow access to /api* without the forward authentication header being set

Arragon5xpwm commented 6 months ago

For Traefik I added a second router without forward auth for the api and added "&& !PathPrefix(/api/)" to the orignial one. While this does work when the Alexa skill was previously connected, it does not allow the skill to connect for first setup (Alexa app is showing "Try again later"). I could not test if this also applies for other integrations that require to authenticate with the home assistant instance (like Withings for example).