Home / Function/ get_current_active_user() — fastapi Function Reference

get_current_active_user() — fastapi Function Reference

Architecture documentation for the get_current_active_user() function in tutorial005_an_py310.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  98d9a3ab_3747_8d76_ad15_17a6bc318a23["get_current_active_user()"]
  8a0ba17a_1db0_9446_2cfd_cfd18d89c608["tutorial005_an_py310.py"]
  98d9a3ab_3747_8d76_ad15_17a6bc318a23 -->|defined in| 8a0ba17a_1db0_9446_2cfd_cfd18d89c608
  style 98d9a3ab_3747_8d76_ad15_17a6bc318a23 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

docs_src/security/tutorial005_an_py310.py lines 140–145

async def get_current_active_user(
    current_user: Annotated[User, Security(get_current_user, scopes=["me"])],
):
    if current_user.disabled:
        raise HTTPException(status_code=400, detail="Inactive user")
    return current_user

Domain

Subdomains

Frequently Asked Questions

What does get_current_active_user() do?
get_current_active_user() is a function in the fastapi codebase, defined in docs_src/security/tutorial005_an_py310.py.
Where is get_current_active_user() defined?
get_current_active_user() is defined in docs_src/security/tutorial005_an_py310.py at line 140.

Analyze Your Own Codebase

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

Try Supermodel Free