Updated OAuth 2.0 login when Home Assistant URL is not homeassistant.local:8123 (markdown)

Li Shuzhen
2025-11-20 16:43:09 +08:00
parent 1bf7820472
commit bba16e68b6

@@ -40,3 +40,6 @@ Change the default URL in the browser address bar to your custom URL and press E
According to the OAuth 2.0 standard, the redirect URL — used to return the authorization code to the client — must be pre-configured on the authorization server. If users were allowed to modify this URL via an interface, an attacker could craft a malicious client and change the redirect URL to a server under their control. When a user logs in through this forged client, the authorization code would be sent to the attackers server, compromising the users credentials.
For security reasons, xiaomi_home will not implement this feature.
## Reference
- [Use a browser extension to redirect to the custom URL.](https://github.com/XiaoMi/ha_xiaomi_home/issues/8#issuecomment-2564939682)