MCPcopy
hub / github.com/fastapi/fastapi / get_current_active_user

Function get_current_active_user

docs_src/security/tutorial004_py310.py:112–115  ·  view source on GitHub ↗
(current_user: User = Depends(get_current_user))

Source from the content-addressed store, hash-verified

110
111
112async def get_current_active_user(current_user: User = Depends(get_current_user)):
113 if current_user.disabled:
114 raise HTTPException(status_code=400, detail="Inactive user")
115 return current_user
116
117
118@app.post("/token")

Callers

nothing calls this directly

Calls 2

DependsClass · 0.90
HTTPExceptionClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…