Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth_resp_x_vouch_user is always homeassistant for all users with home assistant provider #565

Open
ivanjx opened this issue Jun 27, 2024 · 1 comment · May be fixed by #566
Open

auth_resp_x_vouch_user is always homeassistant for all users with home assistant provider #565

ivanjx opened this issue Jun 27, 2024 · 1 comment · May be fixed by #566

Comments

@ivanjx
Copy link

ivanjx commented Jun 27, 2024

Describe the problem
i am trying to implement basic authorization per domain with openresty following the examples provided in this repo. however for all the users on my home assistant, the auth_resp_x_vouch_user is always homeassistant.

Expected behavior
auth_resp_x_vouch_user should be the same as the home assistant username.

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Brave
  • Version: 1.67.116

Additional context
configs and scripts: https://gist.github.com/ivanjx/1a08d6e0413cb6b9bb8302ebe7db9de1

nginx log output:

2024/06/27 17:16:22 [error] 7#7: *12 [lua] user_auth.lua:28: VOUCH USER GNAME: homeassistant!
@ivanjx
Copy link
Author

ivanjx commented Jun 29, 2024

sorry for not looking into the HA integration code before opening this issue. i realized that HA does not even provide an api to query the username. however i am trying to merge changes that could make this happen.

home-assistant/core#120811

@ivanjx ivanjx linked a pull request Jun 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant