Buckets:
AnonymousSpottedToad/human_verified_bucket / human_annotated /mappings /python /authentication_pwd__Clinical-Genomics_statina.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Implicit; sends username+password via OAuth2PasswordRequestForm to POST /v2/token, or registration form to POST /v2/user/register", | |
| "status": "external", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "symbol": "login_for_access_token", | |
| "file": "statina/API/v2/endpoints/user.py", | |
| "lines": "85–104", | |
| "notes": "OAuth2PasswordBearer extracts bearer token; get_current_user() decodes JWT, fetches user from DB, and checks security scopes before granting access", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "symbol": "authenticate_user", | |
| "file": "statina/API/external/api/deps.py", | |
| "lines": "26", | |
| "notes": "Fetches user via crud.find.users.user(), then delegates to passlib bcrypt verify_password(plain, hashed). Called by login_for_access_token()", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Comparator", | |
| "symbol": "verify", | |
| "file": "statina/API/external/api/deps.py", | |
| "lines": "19", | |
| "notes": "passlib CryptContext(schemes=['bcrypt']) provides constant-time comparison internally", | |
| "status": "external", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Hasher", | |
| "symbol": "verify", | |
| "file": "statina/API/external/api/deps.py", | |
| "lines": "19", | |
| "notes": "passlib CryptContext with bcrypt scheme; salt generation is implicit in passlib", | |
| "status": "external", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Password store", | |
| "symbol": "", | |
| "file": "statina/API/external/api/deps.py", | |
| "lines": "28", | |
| "notes": "User model has hashed_password: str persisted in MongoDB user collection via insert_user() and find_one()", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Not found; no pepper or application-level secret is concatenated with the password before hashing", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "symbol": "verify", | |
| "file": "statina/API/external/api/deps.py", | |
| "lines": "19", | |
| "notes": "Creates JWT access tokens with sub, scopes, and exp claims; signed with settings.secret_key using configurable algorithm", | |
| "status": "external", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Hash manager", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No dedicated hash manager class; registration endpoint directly calls get_password_hash(password) and passes result into User() constructor before DB insert", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "SRNG", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "secrets.token_urlsafe(64) generates cryptographic email verification tokens; passlib bcrypt internally uses OS CSPRNG for salt; secrets.compare_digest for constant-time password confirmation check", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Password policy", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Not found; no password length, complexity, or dictionary checks. Only validation is password == password_repeated via secrets.compare_digest", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "System", | |
| "symbol": "", | |
| "file": "statina/API/v2/endpoints/user.py", | |
| "lines": "92–104", | |
| "notes": "FastAPI Security() dependency chain validates JWT, fetches user, checks scopes hierarchy (admin > RW > R > inactive > unconfirmed) before allowing access to protected endpoints", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Registrar", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Self-registration: checks username/email uniqueness, validates password match, hashes password, creates User with role='unconfirmed', inserts to DB, sends email verification link with verification_hex token", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Resetter", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Not found; no password reset or password change endpoint exists in the codebase", | |
| "status": "missing", | |
| "nodeId": null | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.5 kB
- Xet hash:
- 1fd3baf6d1808acc75a2ea0023a7e5daebe327ef65a74071a9f03e54b01e5410
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.