Protect the API and add alternative authentication endpoint.

This commit is contained in:
grossmj committed 2021-04-20 11:59:02 +09:30
1 parent e28452f09a
commit 0465cb87f6
7 files changed
+199 -80

No files matched your search

@@ -24,7 +24,7 @@ from gns3server.services import auth_service
from .database import get_repository
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/v3/users/login") # FIXME: URL prefix
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/v3/users/login")
async def get_user_from_token(