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

Fix oauth behind a reverse proxy #62

Merged

Conversation

catadiel
Copy link
Contributor

Oauth url should be generated with home assistant external_access url (public domain/IP) if available.
This allow the integration to correctly get the oauth token when Home Assistant is behind a reverse proxy and an external url has been set in HA settings.
Rollback to internal_access url (private domain/IP) if none external url exist.

This substitute #61 with requested dev branch base

Oauth url should be generated with home assistant external_access url (public domain/IP) if available. 
This allow the integration to correctly get the oauth token when Home Assistant is behind a reverse proxy and an external url has been set in HA settings.
Rollback to internal_access url (private domain/IP) if none external url exist.
@catadiel catadiel changed the title Fix-oauth external acces url Fix oauth behind a reverse proxy Sep 19, 2021
@kloknibor kloknibor merged commit b021189 into HomeAssistant-Mods:dev Oct 12, 2021
@kloknibor
Copy link
Contributor

Thanks! Sorry for the late merge!

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 this pull request may close these issues.

None yet

2 participants