Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /python /authentication_pwd /Clinical-Genomics_statina.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client (UI/SDK/CLI) posts username/password to POST /v2/token; the repo is backend-only (statina/), the frontend lives outside the repo. Tests excluded." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "login_for_access_token", | |
| "file": "statina/API/v2/endpoints/user.py", | |
| "lines": "86", | |
| "notes": "Login route POST /v2/token (router registered in statina/main.py:42) receives OAuth2PasswordRequestForm, calls authenticate_user at user.py:89 and raises credentials_exception (401) at user.py:91 when verification fails." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "present", | |
| "symbol": "authenticate_user", | |
| "file": "statina/API/external/api/deps.py", | |
| "lines": "26", | |
| "notes": "Called by the Enforcer at statina/API/v2/endpoints/user.py:89; fetches the user via crud.find.users.user (deps.py:28) and checks the password via verify_password (deps.py:30), returning the User or None." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "user", | |
| "file": "statina/crud/find/users.py", | |
| "lines": "76", | |
| "notes": "Called by authenticate_user at deps.py:28; queries the MongoDB user collection by username (users.py:83) and returns a User model holding hashed_password (statina/models/database/user.py:24)." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "statina/API/external/api/deps.py", | |
| "lines": "19", | |
| "notes": "authenticate_user (deps.py:30) calls wrapper verify_password, which calls passlib CryptContext.verify (bcrypt, configured at deps.py:15); the one library call both re-hashes the password with the stored salt and compares (also cited for Comparator)." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper on the verification path; authenticate_user/verify_password in deps.py use only bcrypt with its per-hash salt. settings.secret_key (statina/config.py:19) is the JWT signing key, not a pepper." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No encryption of the password hash with a pepper key; verify_password (deps.py:18) only does bcrypt verification. jwt.encode at deps.py:57 signs the issued token and is not an Encrypter." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "statina/API/external/api/deps.py", | |
| "lines": "19", | |
| "notes": "Reached from authenticate_user (deps.py:30) via wrapper verify_password; passlib CryptContext(schemes=[\"bcrypt\"]).verify hashes and compares against user.hashed_password in one call (same call as Hasher)." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "create_access_token", | |
| "file": "statina/API/external/api/deps.py", | |
| "lines": "46", | |
| "notes": "On successful verification the Enforcer's success branch calls create_access_token at statina/API/v2/endpoints/user.py:92, which issues a JWT with the user's scopes; the token response is returned at user.py:93." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.42 kB
- Xet hash:
- 383806d77fd442f6683ac181163b6452707190598fda2f6a8ba9933bea88c474
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.