From 3b70cd58a331043edf2bbe8d7f1135c74d288407 Mon Sep 17 00:00:00 2001 From: Sergio Oller Date: Thu, 7 Jan 2021 21:02:36 +0100 Subject: [PATCH] Allow GET method on /auth with BasicAuth (#2407) * Allow GET on /auth with BasicAuth * Accept GET without further validation As suggested on https://github.com/home-assistant/supervisor/pull/2407#pullrequestreview-563712080 --- supervisor/api/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/supervisor/api/__init__.py b/supervisor/api/__init__.py index 3ea30f0e0..58cc3c390 100644 --- a/supervisor/api/__init__.py +++ b/supervisor/api/__init__.py @@ -248,6 +248,7 @@ class RestAPI(CoreSysAttributes): self.webapp.add_routes( [ + web.get("/auth", api_auth.auth), web.post("/auth", api_auth.auth), web.post("/auth/reset", api_auth.reset), web.delete("/auth/cache", api_auth.cache),