mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-08 09:56:30 +00:00
Add static example for AuthorizationServer
This commit is contained in:
parent
c701c3f9cb
commit
0cc5a85c13
@ -23,6 +23,10 @@ async def async_get_authorization_server(
|
|||||||
self, hass: HomeAssistant
|
self, hass: HomeAssistant
|
||||||
) -> AuthorizationServer:
|
) -> AuthorizationServer:
|
||||||
"""Return authorization server."""
|
"""Return authorization server."""
|
||||||
|
return AuthorizationServer(
|
||||||
|
authorize_url="https://example.com/auth",
|
||||||
|
token_url="https://example.com/oauth2/v4/token"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
# Optional: Only implement if needed to provide a credential from configuration.yaml
|
# Optional: Only implement if needed to provide a credential from configuration.yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user