(self, request: Request)
| 92 | ) |
| 93 | |
| 94 | async def __call__(self, request: Request) -> HTTPAuthorizationCredentials | None: |
| 95 | authorization = request.headers.get("Authorization") |
| 96 | scheme, credentials = get_authorization_scheme_param(authorization) |
| 97 | if not (authorization and scheme and credentials): |
| 98 | if self.auto_error: |
| 99 | raise self.make_not_authenticated_error() |
| 100 | else: |
| 101 | return None |
| 102 | return HTTPAuthorizationCredentials(scheme=scheme, credentials=credentials) |
| 103 | |
| 104 | |
| 105 | class HTTPBasic(HTTPBase): |
nothing calls this directly
no test coverage detected