Fix audit get_current_user
get_current_user has 4 args not 3 args:
```
get_current_user(
request: Request,
response: Response,
background_tasks: BackgroundTasks,
auth_token: HTTPAuthorizationCredentials = Depends(bearer_security)
```
This commit is contained in:
1 parent
3f35ba27fc
commit
c4e0051ab2
1 file changed
+1
-1
@@ -195,7 +195,7 @@ class AuditLoggingMiddleware:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
user = get_current_user(
|
user = get_current_user(
|
||||||
request, None, get_http_authorization_cred(auth_header)
|
request, None, None, get_http_authorization_cred(auth_header)
|
||||||
)
|
)
|
||||||
return user
|
return user
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in new issue
Block a user