Fix SIGN_QUERY_PARAM in check in auth_middleware (#74479)

pull/74489/head
J. Nick Koston 2022-07-05 23:09:33 -05:00 committed by GitHub
parent 3875fc5953
commit 8dfb0cb4e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ async def async_setup_auth(hass: HomeAssistant, app: Application) -> None:
# for every request.
elif (
request.method == "GET"
and SIGN_QUERY_PARAM in request.query
and SIGN_QUERY_PARAM in request.query_string
and await async_validate_signed_request(request)
):
authenticated = True