MCPcopy
hub / github.com/fastapi/fastapi / read_current_user

Function read_current_user

docs_src/security/tutorial006_py310.py:10–11  ·  view source on GitHub ↗
(credentials: HTTPBasicCredentials = Depends(security))

Source from the content-addressed store, hash-verified

8
9@app.get("/users/me")
10def read_current_user(credentials: HTTPBasicCredentials = Depends(security)):
11 return {"username": credentials.username, "password": credentials.password}

Callers

nothing calls this directly

Calls 1

DependsClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…