__call__() — fastapi Function Reference
Architecture documentation for the __call__() function in open_id_connect_url.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD e6c5d403_450e_c23e_aaf9_43e3a3bdac2a["__call__()"] 76b111a9_5b62_f8e0_e44a_b9a33f6470f7["OpenIdConnect"] e6c5d403_450e_c23e_aaf9_43e3a3bdac2a -->|defined in| 76b111a9_5b62_f8e0_e44a_b9a33f6470f7 a3fd30fc_12b7_e7b8_72e3_011111e9cb1d["make_not_authenticated_error()"] e6c5d403_450e_c23e_aaf9_43e3a3bdac2a -->|calls| a3fd30fc_12b7_e7b8_72e3_011111e9cb1d style e6c5d403_450e_c23e_aaf9_43e3a3bdac2a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
fastapi/security/open_id_connect_url.py lines 87–94
async def __call__(self, request: Request) -> Optional[str]:
authorization = request.headers.get("Authorization")
if not authorization:
if self.auto_error:
raise self.make_not_authenticated_error()
else:
return None
return authorization
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does __call__() do?
__call__() is a function in the fastapi codebase, defined in fastapi/security/open_id_connect_url.py.
Where is __call__() defined?
__call__() is defined in fastapi/security/open_id_connect_url.py at line 87.
What does __call__() call?
__call__() calls 1 function(s): make_not_authenticated_error.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free