From 66047b343159a44c9a480ef9f6c7ef8e32c5059a Mon Sep 17 00:00:00 2001 From: grossmj Date: Sun, 3 Sep 2023 17:31:05 +0700 Subject: [PATCH] Fix OAuth2PasswordBearer token URL --- 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 fa846cb4..ce49ab0a 100644 --- a/gns3server/api/routes/controller/dependencies/authentication.py +++ b/gns3server/api/routes/controller/dependencies/authentication.py @@ -26,7 +26,7 @@ from gns3server.db.repositories.rbac import RbacRepository from gns3server.services import auth_service from .database import get_repository -oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/v3/users/login", auto_error=False) +oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/v3/access/users/login", auto_error=False) async def get_user_from_token(