1 line
8.3 KiB
JSON
1 line
8.3 KiB
JSON
{"nodes": [{"id": "backend_auth_py", "label": "auth.py", "file_type": "code", "source_file": "backend/auth.py", "source_location": "L1"}, {"id": "auth_tokendata", "label": "TokenData", "file_type": "code", "source_file": "backend/auth.py", "source_location": "L30"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "auth_tokenresponse", "label": "TokenResponse", "file_type": "code", "source_file": "backend/auth.py", "source_location": "L37"}, {"id": "auth_create_access_token", "label": "create_access_token()", "file_type": "code", "source_file": "backend/auth.py", "source_location": "L45"}, {"id": "auth_get_current_user", "label": "get_current_user()", "file_type": "code", "source_file": "backend/auth.py", "source_location": "L63"}, {"id": "auth_get_current_admin", "label": "get_current_admin()", "file_type": "code", "source_file": "backend/auth.py", "source_location": "L100"}, {"id": "auth_rationale_1", "label": "[C-01] JWT Authentication Module Implement Bearer token authentication for API e", "file_type": "rationale", "source_file": "backend/auth.py", "source_location": "L1"}, {"id": "auth_rationale_46", "label": "Create JWT token with expiration.", "file_type": "rationale", "source_file": "backend/auth.py", "source_location": "L46"}, {"id": "auth_rationale_64", "label": "Dependency that validates JWT token from Authorization header. Returns Token", "file_type": "rationale", "source_file": "backend/auth.py", "source_location": "L64"}, {"id": "auth_rationale_101", "label": "Dependency that checks if user has 'admin' role.", "file_type": "rationale", "source_file": "backend/auth.py", "source_location": "L101"}], "edges": [{"source": "backend_auth_py", "target": "os", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L5", "weight": 1.0}, {"source": "backend_auth_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L6", "weight": 1.0}, {"source": "backend_auth_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L7", "weight": 1.0}, {"source": "backend_auth_py", "target": "fastapi", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L8", "weight": 1.0}, {"source": "backend_auth_py", "target": "fastapi_security", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L9", "weight": 1.0}, {"source": "backend_auth_py", "target": "jose", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L10", "weight": 1.0}, {"source": "backend_auth_py", "target": "pydantic", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L11", "weight": 1.0}, {"source": "backend_auth_py", "target": "backend_config_loader_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L12", "weight": 1.0}, {"source": "backend_auth_py", "target": "secrets", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L19", "weight": 1.0}, {"source": "backend_auth_py", "target": "sys", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L21", "weight": 1.0}, {"source": "backend_auth_py", "target": "auth_tokendata", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L30", "weight": 1.0}, {"source": "auth_tokendata", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L30", "weight": 1.0}, {"source": "backend_auth_py", "target": "auth_tokenresponse", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L37", "weight": 1.0}, {"source": "auth_tokenresponse", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L37", "weight": 1.0}, {"source": "backend_auth_py", "target": "auth_create_access_token", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L45", "weight": 1.0}, {"source": "backend_auth_py", "target": "auth_get_current_user", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L63", "weight": 1.0}, {"source": "backend_auth_py", "target": "auth_get_current_admin", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L100", "weight": 1.0}, {"source": "auth_get_current_user", "target": "auth_tokendata", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L84", "weight": 1.0}, {"source": "auth_rationale_1", "target": "backend_auth_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L1", "weight": 1.0}, {"source": "auth_rationale_46", "target": "auth_create_access_token", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L46", "weight": 1.0}, {"source": "auth_rationale_64", "target": "auth_get_current_user", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L64", "weight": 1.0}, {"source": "auth_rationale_101", "target": "auth_get_current_admin", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/auth.py", "source_location": "L101", "weight": 1.0}], "raw_calls": [{"caller_nid": "auth_create_access_token", "callee": "now", "source_file": "backend/auth.py", "source_location": "L48"}, {"caller_nid": "auth_create_access_token", "callee": "now", "source_file": "backend/auth.py", "source_location": "L50"}, {"caller_nid": "auth_create_access_token", "callee": "timedelta", "source_file": "backend/auth.py", "source_location": "L50"}, {"caller_nid": "auth_create_access_token", "callee": "str", "source_file": "backend/auth.py", "source_location": "L53"}, {"caller_nid": "auth_create_access_token", "callee": "now", "source_file": "backend/auth.py", "source_location": "L57"}, {"caller_nid": "auth_create_access_token", "callee": "encode", "source_file": "backend/auth.py", "source_location": "L59"}, {"caller_nid": "auth_get_current_user", "callee": "getLogger", "source_file": "backend/auth.py", "source_location": "L70"}, {"caller_nid": "auth_get_current_user", "callee": "debug", "source_file": "backend/auth.py", "source_location": "L71"}, {"caller_nid": "auth_get_current_user", "callee": "decode", "source_file": "backend/auth.py", "source_location": "L73"}, {"caller_nid": "auth_get_current_user", "callee": "int", "source_file": "backend/auth.py", "source_location": "L74"}, {"caller_nid": "auth_get_current_user", "callee": "get", "source_file": "backend/auth.py", "source_location": "L74"}, {"caller_nid": "auth_get_current_user", "callee": "get", "source_file": "backend/auth.py", "source_location": "L75"}, {"caller_nid": "auth_get_current_user", "callee": "get", "source_file": "backend/auth.py", "source_location": "L76"}, {"caller_nid": "auth_get_current_user", "callee": "debug", "source_file": "backend/auth.py", "source_location": "L77"}, {"caller_nid": "auth_get_current_user", "callee": "HTTPException", "source_file": "backend/auth.py", "source_location": "L80"}, {"caller_nid": "auth_get_current_user", "callee": "fromtimestamp", "source_file": "backend/auth.py", "source_location": "L88"}, {"caller_nid": "auth_get_current_user", "callee": "get", "source_file": "backend/auth.py", "source_location": "L88"}, {"caller_nid": "auth_get_current_user", "callee": "error", "source_file": "backend/auth.py", "source_location": "L91"}, {"caller_nid": "auth_get_current_user", "callee": "type", "source_file": "backend/auth.py", "source_location": "L91"}, {"caller_nid": "auth_get_current_user", "callee": "str", "source_file": "backend/auth.py", "source_location": "L91"}, {"caller_nid": "auth_get_current_user", "callee": "HTTPException", "source_file": "backend/auth.py", "source_location": "L92"}, {"caller_nid": "auth_get_current_admin", "callee": "HTTPException", "source_file": "backend/auth.py", "source_location": "L103"}]} |