Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /python /authentication_pwd /codemation_easyauth.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The HTML login form that posts username/password to /login is produced by the external easyadmin library (self.admin.login_page, served via get_login_page in easyauth/server.py:346); no in-repo client code builds and sends the credential to the traced Enforcer. EasyAuthClient's /login (easyauth/client.py:293-297) forwards credentials over RPC to generate_auth_token, a different entry point." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "login_page", | |
| "file": "easyauth/api.py", | |
| "lines": "278", | |
| "notes": "POST /login route handler (registered via api_setup, called at easyauth/server.py:224) calls server.validate_user_pw at easyauth/api.py:284 and, on failure, returns the login page instead of issuing a token. Sibling handlers login_for_access_token (/auth/token, api.py:243) and generate_auth_token (api.py:231) use the same verifier." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "present", | |
| "symbol": "validate_user_pw", | |
| "file": "easyauth/server.py", | |
| "lines": "627", | |
| "notes": "Reached from login_page at easyauth/api.py:284; loads the user via Users.get (server.py:628), rejects service accounts, and calls is_password_valid (server.py:638). Caveat: a ValueError raised during checking is logged and the user is still returned (server.py:641-643), a fail-open bug." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "get", | |
| "file": "easyauth/server.py", | |
| "lines": "628", | |
| "notes": "validate_user_pw calls Users.get(username=username) at easyauth/server.py:628; get is inherited from the pydbantic DataBaseModel, but the repo declares the Users table with its bcrypt-hash password field (class Users, easyauth/models.py:67-68)." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "checkpw", | |
| "file": "easyauth/server.py", | |
| "lines": "543", | |
| "notes": "validate_user_pw (server.py:638) calls the thin wrapper is_password_valid (server.py:541), which calls bcrypt.checkpw at server.py:543 (bcrypt imported at server.py:12); the one checkpw call re-hashes with the stored salt and compares, covering both Hasher and Comparator. Stored hashes come from bcrypt.hashpw in encode_password (server.py:538)." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper on the verification path: validate_user_pw/is_password_valid (easyauth/server.py:627-643) use only the bcrypt hash+salt; grep for pepper/hmac/secret-keyed hashing found nothing. The RSA keys from key_setup (server.py:273) are only for JWT signing." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No encryption of the password hash with a pepper; is_password_valid (easyauth/server.py:541) only calls bcrypt.checkpw. The 'encrypt' at api.py:408 is JWT-encoding of activation data in registration, not on this path." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "checkpw", | |
| "file": "easyauth/server.py", | |
| "lines": "543", | |
| "notes": "Same bcrypt.checkpw call as the Hasher (bcrypt library, called from is_password_valid at easyauth/server.py:543, reached from validate_user_pw at server.py:638); checkpw does the comparison internally and returns True/False, which validate_user_pw turns into user/None." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "issue_token", | |
| "file": "easyauth/server.py", | |
| "lines": "489", | |
| "notes": "On successful verification login_page fetches permissions (api.py:292) and calls server.issue_token at easyauth/api.py:293, which creates and stores an RS256 JWT; the handler then sets it as the 'token' cookie (api.py:297) and redirects." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.08 kB
- Xet hash:
- 77c56eb6fcf9ac864458d894c701095a00f15b41d97aff0a84f7329a1926e5a5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.