fastapi-security
CommunitySecure FastAPI APIs
Authoraleonsa
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a comprehensive set of tools and patterns to secure FastAPI applications, addressing authentication, authorization, and common web vulnerabilities.
Core Features & Use Cases
- JWT Authentication: Implement secure token-based authentication using
python-jose. - Role-Based Access Control (RBAC): Define and enforce granular permissions for different user roles.
- Security Hardening: Configure CORS, rate limiting, security headers, and input validation to protect against common attacks.
- Use Case: Secure a new FastAPI backend for a web application by implementing user login, protecting sensitive endpoints with role checks, and ensuring all communication is safe from common web exploits.
Quick Start
Implement JWT authentication in your FastAPI application using the provided code examples for token generation, decoding, and password hashing.
Dependency Matrix
Required Modules
python-josepasslibfastapipydanticslowapipython-magic
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: fastapi-security Download link: https://github.com/aleonsa/claude-config/archive/main.zip#fastapi-security Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.