Buckets:
AnonymousSpottedToad/human_verified_bucket / human_annotated /mappings /python /authentication_pwd__tumma72_mlx-manager.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client code in the working tree sends credentials to POST /api/auth/login (only backend/ and scripts/ exist; the frontend is not present). The caller is outside the repo; tests ignored.", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "symbol": "login", | |
| "file": "backend/mlx_manager/routers/auth.py", | |
| "lines": "69", | |
| "notes": "FastAPI route handler POST /api/auth/login (router registered in backend/mlx_manager/main.py:342) receives email/password via OAuth2PasswordRequestForm and raises HTTP 401 at auth.py:83 when verify_password fails, otherwise issues a token.", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "symbol": "verify_password", | |
| "file": "backend/mlx_manager/services/auth_service.py", | |
| "lines": "25", | |
| "notes": "Called by the Enforcer login at backend/mlx_manager/routers/auth.py:82 with the received password and the stored hash (fetched inline in login at auth.py:78). It forwards both to pwdlib PasswordHash.verify and returns the boolean result.", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Password store", | |
| "symbol": "User", | |
| "file": "backend/mlx_manager/models/entities.py", | |
| "lines": "30", | |
| "notes": "SQLModel table 'users' with hashed_password column (entities.py:36); login queries it inline via session.execute(select(User).where(User.email == ...)) at backend/mlx_manager/routers/auth.py:78, and the hash is passed to verify_password at auth.py:82. No dedicated repository method exists, so the table class is cited.", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Hasher", | |
| "symbol": "verify", | |
| "file": "backend/mlx_manager/services/auth_service.py", | |
| "lines": "27", | |
| "notes": "Reached from verify_password (auth_service.py:25); pwdlib PasswordHash.verify (Argon2, configured via PasswordHash.recommended() at auth_service.py:17) re-hashes the password with the stored salt. The same call also performs the comparison (Comparator).", | |
| "status": "external", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper value is stored or used on the verify_password path (auth_service.py:25-27); searched for pepper/hmac/secret usage in backend/mlx_manager. settings.jwt_secret is only used for JWT signing, not as a pepper.", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The Argon2 hash is not encrypted/peppered with any key on the verification path (auth_service.py:25-27); no encryption call found.", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Comparator", | |
| "symbol": "verify", | |
| "file": "backend/mlx_manager/services/auth_service.py", | |
| "lines": "27", | |
| "notes": "Reached from verify_password (auth_service.py:25); pwdlib PasswordHash.verify (Argon2 hasher) compares the recomputed hash against the stored hashed_password and returns a boolean. Same call as the Hasher.", | |
| "status": "external", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "System", | |
| "symbol": "create_access_token", | |
| "file": "backend/mlx_manager/services/auth_service.py", | |
| "lines": "30", | |
| "notes": "After the Enforcer login passes password verification (and status checks), it calls create_access_token at backend/mlx_manager/routers/auth.py:102 to issue the JWT returned to the client (success branch of the login action).", | |
| "status": "present", | |
| "nodeId": null | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.85 kB
- Xet hash:
- e392bb48523792b4aad77171960f7030e9e9c97301d84de85e471d5cebb0001a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.