Demosthene-OR
commited on
Commit
·
77f9f7d
1
Parent(s):
6c73c3d
Update main.py
Browse files
main.py
CHANGED
@@ -87,7 +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 |
-
print("authorization:"
|
91 |
if not Authorization:
|
92 |
raise HTTPException(status_code=401, detail="Utilisateur non authorisé1")
|
93 |
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:", type(Authorization))
|
91 |
if not Authorization:
|
92 |
raise HTTPException(status_code=401, detail="Utilisateur non authorisé1")
|
93 |
print("scheme, credentials ",Authorization)
|