Commit
·
dc97561
1
Parent(s):
9649fff
Update main.py
Browse files
main.py
CHANGED
@@ -87,6 +87,7 @@ async def validation_exception_handler(request: Request, exc: ValidationError):
|
|
87 |
|
88 |
# Fonction pour vérifier l'authentification de l'utilisateur
|
89 |
def authenticate(authorization: str = Header(None)):
|
|
|
90 |
if not authorization:
|
91 |
raise HTTPException(status_code=401, detail="Utilisateur non authorisé1")
|
92 |
print("scheme, credentials ",authorization)
|
|
|
87 |
|
88 |
# Fonction pour vérifier l'authentification de l'utilisateur
|
89 |
def authenticate(authorization: str = Header(None)):
|
90 |
+
print("authorization:"+authorization)
|
91 |
if not authorization:
|
92 |
raise HTTPException(status_code=401, detail="Utilisateur non authorisé1")
|
93 |
print("scheme, credentials ",authorization)
|