From 037c659f9bcd23edf2a8569f688d125e307e184a Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 20 Jul 2022 00:29:42 +0200 Subject: [PATCH] Don't show optional token param in API docs --- gns3server/api/routes/controller/dependencies/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/api/routes/controller/dependencies/authentication.py b/gns3server/api/routes/controller/dependencies/authentication.py index c1e05b71..ce07e9b3 100644 --- a/gns3server/api/routes/controller/dependencies/authentication.py +++ b/gns3server/api/routes/controller/dependencies/authentication.py @@ -32,7 +32,7 @@ oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/v3/users/login", auto_error=Fals async def get_user_from_token( bearer_token: str = Depends(oauth2_scheme), user_repo: UsersRepository = Depends(get_repository(UsersRepository)), - token: Optional[str] = None, + token: Optional[str] = Query(None, include_in_schema=False) ) -> schemas.User: if bearer_token: