Buckets:

AnonymousSpottedToad/human_verified_bucket / human_annotated /mappings /python /authentication_pwd__aspuru-guzik-group_molar.json
download
raw
4.48 kB
{
"role_mappings": [
{
"role": "Subject",
"symbol": "",
"file": "",
"lines": "",
"notes": "Implicit; submits OAuth2PasswordRequestForm (username+password) to /login/access-token, registration form to /user/register, or reset request to /password-recovery/{email}",
"status": "external",
"nodeId": null
},
{
"role": "Enforcer",
"symbol": "login_access_token",
"file": "molar/backend/api/api_v1/endpoints/login.py",
"lines": "27",
"notes": "OAuth2PasswordBearer extracts Bearer token from Authorization header; login_access_token() accepts form credentials, delegates to crud.user.authenticate(), returns JWT on success",
"status": "present",
"nodeId": null
},
{
"role": "Verification manager",
"symbol": "authenticate",
"file": "molar/backend/crud/crud_user.py",
"lines": "55",
"notes": "authenticate() fetches user by email then delegates to verify_password(); get_current_user() decodes JWT, validates token payload, fetches user from DB",
"status": "present",
"nodeId": null
},
{
"role": "Comparator",
"symbol": "verify",
"file": "molar/backend/core/security.py",
"lines": "32",
"notes": "passlib CryptContext with bcrypt scheme; constant-time comparison via passlib.verify()",
"status": "external",
"nodeId": null
},
{
"role": "Hasher",
"symbol": "verify",
"file": "molar/backend/core/security.py",
"lines": "32",
"notes": "passlib CryptContext(schemes=['bcrypt'], deprecated='auto'); salt generated internally by bcrypt",
"status": "external",
"nodeId": null
},
{
"role": "Password store",
"symbol": "get_by_email",
"file": "molar/backend/crud/crud_user.py",
"lines": "15–16",
"notes": "User table created via Alembic migration; hashed_password stored as text; accessed via SQLAlchemy ORM (automap reflected models)",
"status": "present",
"nodeId": null
},
{
"role": "Pepper store",
"symbol": "",
"file": "",
"lines": "",
"notes": "Not found; no pepper or secret key concatenated before hashing",
"status": "missing",
"nodeId": null
},
{
"role": "Encrypter",
"symbol": "",
"file": "",
"lines": "",
"notes": "JWT HS256 with SECRET_KEY (secrets.token_urlsafe(32)) for both access tokens and password reset tokens; jose library",
"status": "missing",
"nodeId": null
},
{
"role": "Hash manager",
"symbol": "",
"file": "",
"lines": "",
"notes": "create() hashes password via get_password_hash() before DB insert; update() re-hashes if password field present in update data",
"status": "missing",
"nodeId": null
},
{
"role": "SRNG",
"symbol": "",
"file": "",
"lines": "",
"notes": "SECRET_KEY generated once at startup via secrets.token_urlsafe(32); bcrypt salt generated internally by passlib CryptContext on each hash() call",
"status": "missing",
"nodeId": null
},
{
"role": "Password policy",
"symbol": "",
"file": "",
"lines": "",
"notes": "Not found; no password length, complexity, dictionary, or breach checks; any string accepted as password (UserCreate simply takes password: str)",
"status": "missing",
"nodeId": null
},
{
"role": "System",
"symbol": "",
"file": "",
"lines": "",
"notes": "FastAPI dependency injection enforces authentication on protected routes; superuser check for admin endpoints (add user, activate, deactivate, delete)",
"status": "missing",
"nodeId": null
},
{
"role": "Registrar",
"symbol": "",
"file": "",
"lines": "",
"notes": "Two registration paths: open self-registration (inactive by default, needs admin activation) and admin-created users (active immediately); both call crud.user.create() which hashes password",
"status": "missing",
"nodeId": null
},
{
"role": "Resetter",
"symbol": "",
"file": "",
"lines": "",
"notes": "Full side-channel reset: generates JWT reset token, sends via email, verify_password_reset_token() validates token, re-hashes new password via get_password_hash()",
"status": "missing",
"nodeId": null
}
]
}

Xet Storage Details

Size:
4.48 kB
·
Xet hash:
144be256cea7a333bdd8d7f4166d73f5c86c3de66183e1fef42df869e26dde5a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.