Buckets:

download
raw
2.6 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The cloned repo contains only backend/, cypress/ (tests) and scripts/; no in-repo frontend/SDK client sending the access_token cookie or Bearer header to get_current_user (backend/chainlit/auth/__init__.py:86). Caller is outside the repo."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "authenticate_user",
"file": "backend/chainlit/auth/__init__.py",
"lines": "58",
"notes": "FastAPI dependency chain: UserParam = Annotated[..., Depends(get_current_user)] (backend/chainlit/server.py:768) -> get_current_user (auth/__init__.py:86, skips when require_login() is false) -> authenticate_user, which takes the token extracted by OAuth2PasswordBearerWithCookie.__call__ (auth/cookie.py) and raises HTTP 401 if decode_jwt fails. Also used by the websocket connect in socket.py:138."
},
{
"role": "Verifier",
"status": "present",
"symbol": "decode_jwt",
"file": "backend/chainlit/auth/jwt.py",
"lines": "31",
"notes": "Called by authenticate_user at backend/chainlit/auth/__init__.py:60; fetches the secret, calls PyJWT decode with HS256 and signature verification (exp checked by PyJWT), and returns the User principal built from the claims."
},
{
"role": "Key manager",
"status": "present",
"symbol": "get_jwt_secret",
"file": "backend/chainlit/auth/jwt.py",
"lines": "11",
"notes": "Called by decode_jwt at backend/chainlit/auth/jwt.py:32; returns the HMAC secret from the CHAINLIT_AUTH_SECRET environment variable (also used by create_jwt for issuing)."
},
{
"role": "Cryptographer",
"status": "external",
"symbol": "decode",
"file": "backend/chainlit/auth/jwt.py",
"lines": "35",
"notes": "decode_jwt (jwt.py:31) calls PyJWT jwt.decode (imported as pyjwt at jwt.py:5) with algorithms=['HS256'] and verify_signature=True, which verifies the HMAC-SHA256 MAC; the issuing side uses pyjwt.encode at jwt.py:27."
},
{
"role": "System",
"status": "present",
"symbol": "get_user_threads",
"file": "backend/chainlit/server.py",
"lines": "968",
"notes": "Route POST /project/threads receives current_user: UserParam (server.py:970), i.e. the principal returned by the Enforcer, and lists that user's threads from the data layer. Many other routes (e.g. get_user at server.py:772) use the same UserParam dependency."
}
]
}

Xet Storage Details

Size:
2.6 kB
·
Xet hash:
bb83511a5e0d3bc958e970cbe5348e1ddb41f37106065302e4dc4648f9025422

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.