mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Force login prompt in Tesla Fleet (#130576)
This commit is contained in:
@@ -49,6 +49,7 @@ class TeslaSystemImplementation(config_entry_oauth2_flow.LocalOAuth2Implementati
|
|||||||
def extra_authorize_data(self) -> dict[str, Any]:
|
def extra_authorize_data(self) -> dict[str, Any]:
|
||||||
"""Extra data that needs to be appended to the authorize url."""
|
"""Extra data that needs to be appended to the authorize url."""
|
||||||
return {
|
return {
|
||||||
|
"prompt": "login",
|
||||||
"scope": " ".join(SCOPES),
|
"scope": " ".join(SCOPES),
|
||||||
"code_challenge": self.code_challenge, # PKCE
|
"code_challenge": self.code_challenge, # PKCE
|
||||||
}
|
}
|
||||||
@@ -83,4 +84,4 @@ class TeslaUserImplementation(AuthImplementation):
|
|||||||
@property
|
@property
|
||||||
def extra_authorize_data(self) -> dict[str, Any]:
|
def extra_authorize_data(self) -> dict[str, Any]:
|
||||||
"""Extra data that needs to be appended to the authorize url."""
|
"""Extra data that needs to be appended to the authorize url."""
|
||||||
return {"scope": " ".join(SCOPES)}
|
return {"prompt": "login", "scope": " ".join(SCOPES)}
|
||||||
|
Reference in New Issue
Block a user