MCPcopy Index your code
hub / github.com/fastapi/fastapi / read_current_user

Function read_current_user

tests/test_security_http_base_description.py:12–13  ·  view source on GitHub ↗
(credentials: HTTPAuthorizationCredentials = Security(security))

Source from the content-addressed store, hash-verified

10
11@app.get("/users/me")
12def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)):
13 return {"scheme": credentials.scheme, "credentials": credentials.credentials}
14
15
16client = TestClient(app)

Callers

nothing calls this directly

Calls 1

SecurityClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…