(self)
| 85 | return {"WWW-Authenticate": f"{self.model.scheme.title()}"} |
| 86 | |
| 87 | def make_not_authenticated_error(self) -> HTTPException: |
| 88 | return HTTPException( |
| 89 | status_code=HTTP_401_UNAUTHORIZED, |
| 90 | detail="Not authenticated", |
| 91 | headers=self.make_authenticate_headers(), |
| 92 | ) |
| 93 | |
| 94 | async def __call__(self, request: Request) -> HTTPAuthorizationCredentials | None: |
| 95 | authorization = request.headers.get("Authorization") |
no test coverage detected