1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Update allowlisted OAuth redirect URIs for Wear OS (#77411)

This commit is contained in:
Joris Pelgröm
2022-08-30 03:52:10 +02:00
committed by GitHub
parent 79b5147b46
commit fa0dfd812c
2 changed files with 22 additions and 3 deletions

View File

@@ -183,3 +183,16 @@ async def test_verify_redirect_uri_android_ios(client_id):
assert not await indieauth.verify_redirect_uri(
None, "https://incorrect.com", "homeassistant://auth-callback"
)
if client_id == "https://home-assistant.io/android":
assert await indieauth.verify_redirect_uri(
None,
client_id,
"https://wear.googleapis.com/3p_auth/io.homeassistant.companion.android",
)
else:
assert not await indieauth.verify_redirect_uri(
None,
client_id,
"https://wear.googleapis.com/3p_auth/io.homeassistant.companion.android",
)