Home / Function/ make_not_authenticated_error() — fastapi Function Reference

make_not_authenticated_error() — fastapi Function Reference

Architecture documentation for the make_not_authenticated_error() function in open_id_connect_url.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  a3fd30fc_12b7_e7b8_72e3_011111e9cb1d["make_not_authenticated_error()"]
  76b111a9_5b62_f8e0_e44a_b9a33f6470f7["OpenIdConnect"]
  a3fd30fc_12b7_e7b8_72e3_011111e9cb1d -->|defined in| 76b111a9_5b62_f8e0_e44a_b9a33f6470f7
  e6c5d403_450e_c23e_aaf9_43e3a3bdac2a["__call__()"]
  e6c5d403_450e_c23e_aaf9_43e3a3bdac2a -->|calls| a3fd30fc_12b7_e7b8_72e3_011111e9cb1d
  style a3fd30fc_12b7_e7b8_72e3_011111e9cb1d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fastapi/security/open_id_connect_url.py lines 80–85

    def make_not_authenticated_error(self) -> HTTPException:
        return HTTPException(
            status_code=HTTP_401_UNAUTHORIZED,
            detail="Not authenticated",
            headers={"WWW-Authenticate": "Bearer"},
        )

Domain

Subdomains

Called By

Frequently Asked Questions

What does make_not_authenticated_error() do?
make_not_authenticated_error() is a function in the fastapi codebase, defined in fastapi/security/open_id_connect_url.py.
Where is make_not_authenticated_error() defined?
make_not_authenticated_error() is defined in fastapi/security/open_id_connect_url.py at line 80.
What calls make_not_authenticated_error()?
make_not_authenticated_error() is called by 1 function(s): __call__.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free