Stack your shields to create robust and customizable layers that effectively protect your endpoints from unwanted requests.
Built with modern Python practices and FastAPI's philosophy in mind
Create your first shield in just a few lines of code
A simple authentication shield that validates API tokens
Protect your endpoints with a simple decorator
A parameterized shield for role-based access control
Combine authentication and authorization for layered security
Join developers who trust FastAPI Shield to secure their applications