Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary_without_sequence /mappings /python /authentication_pwd /hu55ain3laa_fastauth.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client posts credentials to POST /token; example.py only configures the app and cli.py is an admin/scaffolding CLI, tests excluded. The caller is outside the repo." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "login_for_access_token", | |
| "file": "fastauth/routers/auth.py", | |
| "lines": "78", | |
| "notes": "POST /token handler in AuthRouter.get_router, mounted via app.include_router(self.get_auth_router(...)) at fastauth/core/auth.py:385. Calls self.auth.authenticate_user at fastauth/routers/auth.py:83 and raises CredentialsException (line 87) on failure, so tokens are only issued for verified credentials." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "present", | |
| "symbol": "_authenticate", | |
| "file": "fastauth/core/auth.py", | |
| "lines": "422", | |
| "notes": "Reached from Enforcer via authenticate_user (fastauth/core/auth.py:405, called at routers/auth.py:83), which delegates to _authenticate at line 419/420. _authenticate fetches the user via get_user (line 423) and calls password_manager.verify_password(password, user.hashed_password) at line 426, returning the user or False." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "get_user", | |
| "file": "fastauth/core/auth.py", | |
| "lines": "391", | |
| "notes": "Called by _authenticate at fastauth/core/auth.py:423. Runs a SQLModel select on user_model by username; the User table stores the bcrypt hash in hashed_password (fastauth/models/user.py:24)." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "checkpw", | |
| "file": "fastauth/security/password.py", | |
| "lines": "32", | |
| "notes": "bcrypt.checkpw (bcrypt library) recomputes the salted hash and compares in one call, so it covers both Hasher and Comparator. Reached via _authenticate (core/auth.py:426) -> PasswordManager.verify_password (security/password.py:21); PasswordManager is instantiated at fastauth/core/auth.py:233." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper on the verification path; searched for pepper/hmac/secret usage in fastauth/. The secret_key (core/auth.py:82) is a JWT signing key, and the bcrypt salt is not a pepper." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The bcrypt hash is not encrypted/HMAC-ed with any key in PasswordManager.verify_password or get_password_hash (fastauth/security/password.py); a hash is not an Encrypter." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "checkpw", | |
| "file": "fastauth/security/password.py", | |
| "lines": "32", | |
| "notes": "Same single bcrypt.checkpw call as the Hasher (bcrypt library): it compares the recomputed hash with the stored hashed_password, wrapped by PasswordManager.verify_password (security/password.py:21), invoked from _authenticate at fastauth/core/auth.py:426." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "create_access_token", | |
| "file": "fastauth/security/tokens.py", | |
| "lines": "56", | |
| "notes": "On success, login_for_access_token calls self.auth.token_manager.create_access_token at fastauth/routers/auth.py:92 (and create_refresh_token at line 93) to issue the JWT returned to the client; TokenManager.create_access_token builds the signed access token." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.71 kB
- Xet hash:
- 6141868c97f1d13f8d78f0312b3ce04640b8466f8d75db53ad93c0ec973fa6c5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.