MCPcopy Create free account
hub / github.com/Brickgraph/fast-graph / get_current_active_user

Function get_current_active_user

app/authorisation/auth.py:94–97  ·  view source on GitHub ↗
(current_user: User = Depends(get_current_user))

Source from the content-addressed store, hash-verified

92
93# Confirm that user is not disabled as a user
94async def get_current_active_user(current_user: User = Depends(get_current_user)):
95 if current_user.disabled:
96 raise HTTPException(status_code=400, detail="Inactive user")
97 return current_user
98
99
100# Endpoint for token authorisation

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected