From 0cd90bf133c11a81bf6e7e67f88b50756a6c833b Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 1 Sep 2023 17:21:54 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(utils.py):=20update=20API=5F?= =?UTF-8?q?KEY=5FNAME=20from=20"api-key"=20to=20"x-api-key"=20to=20align?= =?UTF-8?q?=20with=20naming=20conventions=20and=20improve=20clarity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/services/auth/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/services/auth/utils.py b/src/backend/langflow/services/auth/utils.py index 485968a38..7787684b6 100644 --- a/src/backend/langflow/services/auth/utils.py +++ b/src/backend/langflow/services/auth/utils.py @@ -17,7 +17,7 @@ from sqlmodel import Session oauth2_login = OAuth2PasswordBearer(tokenUrl="api/v1/login") -API_KEY_NAME = "api-key" +API_KEY_NAME = "x-api-key" api_key_query = APIKeyQuery( name=API_KEY_NAME, scheme_name="API key query", auto_error=False