hassio-addons / addon-grocy

Grocy - Home Assistant Community Add-ons
https://addons.community
MIT License
319 stars 60 forks source link

Enable SSO with HomeAssistant users #285

Closed fouram closed 2 years ago

fouram commented 2 years ago

Problem/Motivation

Separate logins are required for Grocy, leading to non-use by non-technical household members

Expected behavior

Using Grocy via add-on will log in using the HomeAssistant user accessing it

Actual behavior

Separate login is required

Steps to reproduce

Visit the Grocy add-on interface via HomeAssistant

Proposed changes

Grocy has "middleware" such as LDAP login available; could the add-on patch in a custom middleware for HomeAssistant sessions just in the add-on? Could the ReverseProxyAuthMiddleware be used to send auth data in the headers?