Skip to main content

An updated CSRF extension for Flask.

Project description

Tests Version Supported Python Versions

Flask-SeaSurf

SeaSurf is a Flask extension for preventing cross-site request forgery (CSRF).

CSRF vulnerabilities have been found in large and popular sites such as YouTube. These attacks are problematic because the mechanism they use is relatively easy to exploit. This extension attempts to aid you in securing your application from such attacks.

This extension is based on the excellent Django middleware.

Installation

Install the extension with one of the following commands:

$ easy_install flask-seasurf

or alternatively if you have pip installed:

$ pip install flask-seasurf

Usage

Using SeaSurf is fairly straightforward. Begin by importing the extension and then passing your application object back to the extension, like this:

from flask_seasurf import SeaSurf
csrf = SeaSurf(app)

Documentation

The Sphinx-compiled documentation is available here: https://flask-seasurf.readthedocs.io/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-SeaSurf-2.0.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

Flask_SeaSurf-2.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file Flask-SeaSurf-2.0.0.tar.gz.

File metadata

  • Download URL: Flask-SeaSurf-2.0.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.19

File hashes

Hashes for Flask-SeaSurf-2.0.0.tar.gz
Algorithm Hash digest
SHA256 8e4003be1580ea8663d6bd3adf272f549ca4d735848895192618ed1945d5ad3c
MD5 96292fb6cb377e0933b48e2982f88721
BLAKE2b-256 2e9cbc48ee775453ba3540da5986012f9640bac1261ba7d23f3da45cc3d2b58a

See more details on using hashes here.

File details

Details for the file Flask_SeaSurf-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Flask_SeaSurf-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 024605511bdd1a61038e1369386c01fcd24b4adcb449bb62e1d32dbb5fe043b2
MD5 4d67e5e27ca40d98f1b78379609025bb
BLAKE2b-256 47d457860c1e549d34435ee6c018e489c15424067edf954f04f085fc3d12da39

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page