mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-12-18 11:22:10 +08:00
Updated OAuth 2.0 login when Home Assistant URL is not homeassistant.local:8123 (markdown)
@@ -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 attacker’s server, compromising the user’s 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)
|
||||
Reference in New Issue
Block a user