Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /python /verifiable_token_based_authentication /descoped_authly.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "present", | |
| "symbol": "_request", | |
| "file": "src/authly/admin/api_client.py", | |
| "lines": "137", | |
| "notes": "In-repo admin CLI client (AdminAPIClient._request) adds 'Authorization: Bearer <access_token>' (api_client.py:167) and e.g. get_status calls GET /admin/status (api_client.py:452), which is guarded by require_admin_system_read -> require_admin_user -> get_current_user (the traced Enforcer)." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "get_current_user", | |
| "file": "src/authly/api/users_dependencies.py", | |
| "lines": "120", | |
| "notes": "FastAPI dependency that pulls the bearer token via oauth2_scheme (DeferredOAuth2PasswordBearer.__call__, auth_dependencies.py:82) and calls _validate_token_and_get_user_id (users_dependencies.py:139), raising 401 on failure. Wired via Depends(get_current_user) on many routes (users_router.py:72, oidc_router.py:206, admin_dependencies.py:42 require_admin_user)." | |
| }, | |
| { | |
| "role": "Verifier", | |
| "status": "present", | |
| "symbol": "_validate_token_and_get_user_id", | |
| "file": "src/authly/api/users_dependencies.py", | |
| "lines": "51", | |
| "notes": "Called by Enforcer get_current_user (users_dependencies.py:139). Calls decode_token (auth/core.py:155, wraps jose jwt.decode) at users_dependencies.py:68, checks 'sub', checks revocation by jti via token_service.is_token_valid, returns the user UUID or raises 401. Caveat: adds a server-side jti revocation lookup on top of signature verification." | |
| }, | |
| { | |
| "role": "Key manager", | |
| "status": "present", | |
| "symbol": "secret_key", | |
| "file": "src/authly/config/config.py", | |
| "lines": "164", | |
| "notes": "Verifier passes config.secret_key at users_dependencies.py:68; AuthlyConfig.secret_key property returns the HMAC secret from the secure secret store (_secrets.get_secret), loaded from a SecretProvider (env/file/static, config/secret_providers.py). Symmetric HS256 key by default." | |
| }, | |
| { | |
| "role": "Cryptographer", | |
| "status": "external", | |
| "symbol": "decode", | |
| "file": "src/authly/auth/core.py", | |
| "lines": "169", | |
| "notes": "Verifier -> decode_token (auth/core.py:155) -> python-jose jwt.decode(token, secret_key, algorithms=[algorithm]) at auth/core.py:169, which verifies the HMAC signature and exp. Generation uses jose jwt.encode in create_access_token in the same module." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "get_system_status", | |
| "file": "src/authly/api/admin_router.py", | |
| "lines": "99", | |
| "notes": "GET /admin/status handler, reached after require_admin_system_read -> require_admin_user -> get_current_user passes; it is the endpoint the Subject's get_status calls (api_client.py:452). Other handlers guarded by the same Enforcer include get_current_user_info (users_router.py:72)." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 2.98 kB
- Xet hash:
- 93a6de06a85af2f54a6050af567bd976a7266185e8860a85db7660c750206e68
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.