Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /python /authentication_pwd /aspuru-guzik-group_molar.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "present", | |
| "symbol": "authenticate", | |
| "file": "molar/client.py", | |
| "lines": "119", | |
| "notes": "In-repo Python client (Client.authenticate) POSTs email (as username) and password form data to /login/access-token, the traced Enforcer login.py:27; called from client.py:46/53 when no token is cached." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "login_access_token", | |
| "file": "molar/backend/api/api_v1/endpoints/login.py", | |
| "lines": "27", | |
| "notes": "FastAPI route POST /login/access-token (router included at api.py:7) receives OAuth2PasswordRequestForm credentials, calls crud.user.authenticate (login.py:41) and raises HTTP 400 'Incorrect email or password' on failure (login.py:45)." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "present", | |
| "symbol": "authenticate", | |
| "file": "molar/backend/crud/crud_user.py", | |
| "lines": "55", | |
| "notes": "CRUDUser.authenticate, called from login_access_token at login.py:41, fetches the user via get_by_email (crud_user.py:58) and calls verify_password with the stored hashed_password (crud_user.py:61), returning the user or None." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "get_by_email", | |
| "file": "molar/backend/crud/crud_user.py", | |
| "lines": "15", | |
| "notes": "Called by CRUDUser.authenticate at crud_user.py:58; SQLAlchemy query on the user table (hashed_password column, models from alembic migration bf3c5d811155_user_table) filtered by email." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "molar/backend/core/security.py", | |
| "lines": "32", | |
| "notes": "verify_password (security.py:31, called at crud_user.py:61) is a thin wrapper around passlib CryptContext.verify, which re-hashes the password with bcrypt using the salt from the stored hash; context configured at security.py:11 (schemes=['bcrypt']). One call covers both Hasher and Comparator." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper on the verification path: verify_password passes only plain and stored hash to passlib bcrypt (security.py:32). Searched molar/ for pepper/encrypt/hmac; SECRET_KEY in config is only used for JWT signing, not password hashing." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No encryption of the password hash on the verification path (CRUDUser.authenticate -> verify_password -> CryptContext.verify); the bcrypt hash is stored and compared directly." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "molar/backend/core/security.py", | |
| "lines": "32", | |
| "notes": "Reached from CRUDUser.authenticate via verify_password (crud_user.py:61); passlib CryptContext(bcrypt).verify both hashes and compares the result to the stored hash, so the same call covers Hasher and Comparator." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "create_access_token", | |
| "file": "molar/backend/core/security.py", | |
| "lines": "17", | |
| "notes": "Success branch of login_access_token calls security.create_access_token at login.py:50 to issue a JWT (python-jose jwt.encode) returned to the client as the login reply." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.56 kB
- Xet hash:
- 5f5e9d33c20f3130c2a5c768fee2707d84d45e1b03c1576d48457bc1c05c46fc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.