Skip to main content

# DSCsrf

Very simple and (almost) plug-and-play global CSRF filtering for Flask using the Double Submit technique outlined on OWASP at https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)_Prevention_Cheat_Sheet#Double_Submit_Cookies.

How to use:

from dscsrf import Csrf from flask import Flask

app = Flask(__name__)

csrf = Csrf(app)

and that’s it!

For rendering the CSRF token in your application, under your form HTML use:

{{ csrf_token() }}

Metadata

Release files for dscsrf 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dscsrf 1.0
File Size Uploaded Provenance Actions
dscsrf-1.0.tar.gz 1.6 kB Without provenance Details for dscsrf-1.0.tar.gz

Release files / dscsrf-1.0.tar.gz

Download URL dscsrf-1.0.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
78220c79d3b3779cd30dc1a9d53942d65a1ea472f6623046caa940922819b7a3
BLAKE2b-256 checksum
How to use checksums
32d7dd4308e0afa261d44823584c06be54daad36cfbb4496ea93d08def58cd75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for dscsrf 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page