The asgi-csrf package is a Python library that provides Cross-Site Request
Forgery (CSRF) protection for ASGI (Asynchronous Server Gateway Interface)
applications. It helps secure web applications from CSRF attacks by adding
middleware that validates and protects against unauthorized requests.
.
Features:
.
- Adds CSRF protection to ASGI applications.
- Supports popular ASGI frameworks like FastAPI and Starlette.
- Integrates seamlessly into existing ASGI application pipelines.
- Provides configurable settings for token generation and validation.
- Allows for exclusion of specific routes or URLs from CSRF protection.
- Ensures stateless and secure CSRF protection in asynchronous web
environments.
.
CSRF attacks are a common security concern for web applications, and the
asgi-csrf library aims to provide a straightforward solution for adding
protection to ASGI-based applications, ensuring that users' interactions are
safe and authenticated.
Installed Size: 44.0 kB
Architectures: all