MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / __init__

Method __init__

src/core/http/middleware/auth_bearer.py:30–35  ·  view source on GitHub ↗
(self, app: ASGIApp, user_service: UserService, hash_service: HashService)

Source from the content-addressed store, hash-verified

28 ]
29
30 def __init__(self, app: ASGIApp, user_service: UserService, hash_service: HashService) -> None:
31 super().__init__(app=app)
32 self.hash_service = hash_service
33 self.user_service = user_service
34 self.bearer_scheme = HTTPBearer(auto_error=False)
35 self.logger = logging.getLogger(__name__)
36
37 async def dispatch(self, request: Request, call_next: RequestResponseEndpoint) -> Response:
38 request.state.is_authenticated = False

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected