MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / require_auth

Function require_auth

trainer/src/shared.py:86–88  ·  view source on GitHub ↗
(auth_credentials=Depends(HTTPBearer()))

Source from the content-addressed store, hash-verified

84
85
86def require_auth(auth_credentials=Depends(HTTPBearer())):
87 if auth_credentials.credentials != os.environ["AUTHENTICATED_SYSTEM_KEY"]:
88 raise HTTPException(status_code=401, detail="Invalid authentication")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected