class FastAPIAuthTagger
- FastAPIAuthTagger
- FrameworkTagger
- Tagger
- Reference
- Object
Defined in:
tagger/framework_taggers/python/fastapi_auth.crConstant Summary
-
AUTH_PARAM_PATTERNS =
[{/:\s*User\s*=\s*Depends/, "FastAPI User dependency injection"}, {/:\s*TokenData\s*=\s*Depends/, "FastAPI TokenData dependency"}, {/:\s*HTTPAuthorizationCredentials\s*=\s*Security/, "FastAPI HTTP authorization"}] -
Auth-related parameter type annotations
-
DEPENDS_AUTH_PATTERNS =
[{/Depends\s*\(\s*get_current_user/, "FastAPI Depends(get_current_user)"}, {/Depends\s*\(\s*get_current_active_user/, "FastAPI Depends(get_current_active_user)"}, {/Depends\s*\(\s*oauth2_scheme/, "FastAPI OAuth2 dependency"}, {/Depends\s*\(\s*get_token/, "FastAPI token dependency"}, {/Depends\s*\(\s*verify_token/, "FastAPI token verification"}, {/Depends\s*\(\s*auth/, "FastAPI auth dependency"}, {/Depends\s*\(\s*require_auth/, "FastAPI require_auth dependency"}, {/Depends\s*\(\s*check_permission/, "FastAPI permission check"}, {/Depends\s*\(\s*RoleChecker/, "FastAPI role checker"}] -
Depends() with auth-related callables
-
SECURITY_PATTERNS =
[{/Security\s*\(\s*oauth2_scheme/, "FastAPI Security(oauth2_scheme)"}, {/Security\s*\(\s*api_key/, "FastAPI Security(api_key)"}, {/Security\s*\(\s*http_bearer/, "FastAPI Security(http_bearer)"}, {/Security\s*\(\s*http_basic/, "FastAPI Security(http_basic)"}] -
Security() declarations