Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /python /verifiable_token_based_authentication /codemation_easyauth.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client sends the bearer token to the server's protected admin API; callers are external browsers/HTTP clients (the cookie is copied into the Authorization header by detect_token_in_cookie, easyauth/server.py:115). EasyAuthClient (easyauth/client.py) is a separate enforcer for other apps, not a client of this one." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "mock_function", | |
| "file": "easyauth/router.py", | |
| "lines": "85", | |
| "notes": "Inner wrapper of EasyAuthAPIRouter.router, registered per route via route(path)(mock_function) at easyauth/router.py:178 for the server's api_router (easyauth/api.py:40, setup at easyauth/server.py:224); token injected via Depends(oauth2_scheme). It calls parent.decode_token (router.py:109), returns 401 on failure, also checks revocation via is_valid_token (router.py:140) and permissions before invoking the handler." | |
| }, | |
| { | |
| "role": "Verifier", | |
| "status": "present", | |
| "symbol": "decode_token", | |
| "file": "easyauth/server.py", | |
| "lines": "522", | |
| "notes": "Reached from mock_function at easyauth/router.py:109 (parent is EasyAuthServer). Calls python_jwt verify_jwt with the server RSA key and allowed alg RS256, which checks signature and exp and returns (header, claims); the Enforcer uses claims[1]. Token-id revocation check is done separately by is_valid_token (server.py:463)." | |
| }, | |
| { | |
| "role": "Key manager", | |
| "status": "present", | |
| "symbol": "key_setup", | |
| "file": "easyauth/server.py", | |
| "lines": "273", | |
| "notes": "decode_token (server.py:523) uses self._privkey, which is built by key_setup (called by default from __init__ at server.py:104 when no private_key is passed): loads the JWK from KEY_PATH/KEY_NAME.key or generates a 2048-bit RSA jwcrypto JWK and persists it. Alternative: private_key argument parsed at server.py:106." | |
| }, | |
| { | |
| "role": "Cryptographer", | |
| "status": "external", | |
| "symbol": "verify_jwt", | |
| "file": "easyauth/server.py", | |
| "lines": "523", | |
| "notes": "Called inside decode_token (server.py:522); python_jwt (import at server.py:14, backed by jwcrypto) verifies the RS256 signature and expiry. Signing counterpart generate_jwt at server.py:513 in issue_token." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "export_auth_config", | |
| "file": "easyauth/api.py", | |
| "lines": "82", | |
| "notes": "Protected handler registered with @api_router.get(\"/auth/export\") (api.py:81) through EasyAuthAPIRouter.router, so it runs only after mock_function (router.py:85) accepts the token; returns users/groups/roles/actions. Other api_router/admin_gui handlers in api.py and frontend.py are protected the same way." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 2.94 kB
- Xet hash:
- 79f2776d485a07e73c303ddda855e00f65965c31d833b62187928233f1e0bb08
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.