Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary_without_sequence /mappings /python /authentication_pwd /rpidhe_chainlit-pypi.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The repo holds only the backend Python package (backend/chainlit) plus tests and cypress e2e fixtures; the React login UI that POSTs to /login is not in this repo, so the caller is outside the repo. Cypress/tests do not count." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "login", | |
| "file": "backend/chainlit/server.py", | |
| "lines": "489", | |
| "notes": "FastAPI route POST /login (registered by @router.post at server.py:488) takes username/password from OAuth2PasswordRequestForm, calls config.code.password_auth_callback at server.py:502 and hands the result to _authenticate_user (server.py:505), which raises 401 'credentialssignin' when no user is returned (server.py:464-468)." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "login (server.py:502) delegates verification to config.code.password_auth_callback, a hook the embedding application registers with the @password_auth_callback decorator (callbacks.py:65, which only stores it via wrap_user_function). The repo ships no production implementation; the only ones are in backend/tests and cypress/e2e fixtures (e.g. cypress/e2e/password_auth/main.py:6), which are excluded." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No credential lookup on the /login path; the user-supplied callback decides. data_layer.create_user (server.py:473) only persists the user after success and stores no password hash." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No password hashing (bcrypt/hashlib/passlib) anywhere in backend/chainlit on the login path; hashing would be the application's callback's responsibility." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper value on the login path. CHAINLIT_AUTH_SECRET (used by create_jwt in auth/jwt.py:15) is a JWT signing secret, not a pepper." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No encryption of a password hash on the login path; the only crypto is JWT signing in create_jwt (auth/jwt.py:15) after success, which is not this role." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo hash comparison; login (server.py:502) only checks whether the external callback returned a User (truthiness check in _authenticate_user, server.py:464). Comparison lives in the application's callback, outside the repo." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "_authenticate_user", | |
| "file": "backend/chainlit/server.py", | |
| "lines": "459", | |
| "notes": "Called by login at server.py:505; on success it persists the user via the data layer (server.py:473), issues a JWT with create_jwt (server.py:479) and sets the auth cookie (server.py:483). Its first lines also raise 401 when the callback returned None." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.46 kB
- Xet hash:
- 780f9071682766fb7eb0917fba841a128f22af5797c0c379d485e7f52240b159
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.