pre-commit-ci-lite[bot]
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
0 additions and
4 deletions
-
fastapi/security/http.py
-
tests/test_security_http_basic_optional.py
|
|
|
@ -5,7 +5,6 @@ from typing import Annotated, Optional |
|
|
|
from annotated_doc import Doc |
|
|
|
from fastapi.exceptions import HTTPException |
|
|
|
from fastapi.openapi.models import HTTPBase as HTTPBaseModel |
|
|
|
from fastapi.openapi.models import HTTPBearer as HTTPBearerModel |
|
|
|
from fastapi.security.base import SecurityBase |
|
|
|
from fastapi.security.utils import get_authorization_scheme_param |
|
|
|
from pydantic import BaseModel |
|
|
|
@ -308,7 +307,6 @@ class HTTPBearer(HTTPBase): |
|
|
|
self.realm = realm |
|
|
|
self.auto_error = auto_error |
|
|
|
|
|
|
|
|
|
|
|
async def __call__( |
|
|
|
self, request: Request |
|
|
|
) -> Optional[HTTPAuthorizationCredentials]: |
|
|
|
|
|
|
|
@ -75,5 +75,3 @@ def test_openapi_schema(): |
|
|
|
"securitySchemes": {"HTTPBasic": {"type": "http", "scheme": "basic"}} |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|