mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Protect the API and add alternative authentication endpoint.
This commit is contained in:
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(
|
||||
|
||||
Reference in new issue
Block a user