check roles user

This commit is contained in:
2023-10-20 23:38:12 +02:00
parent 6e7970d5e3
commit 68c578c449
2 changed files with 3 additions and 4 deletions

View File

@@ -23,7 +23,6 @@ class OAuth2PasswordBearerWithCookie(OAuth2):
async def __call__(self, request: Request) -> Optional[str]:
authorization: str = request.cookies.get("access_token") #changed to accept access token from httpOnly Cookie
print("access_token is",authorization)
scheme, param = get_authorization_scheme_param(authorization)
if not authorization or scheme.lower() != "bearer":