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-1.0.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Flask_SeaSurf-1.0.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Flask-SeaSurf-1.0.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for Flask-SeaSurf-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3d93cf8b77008ffd5c8ce0ddd9a50882eec580ec459d24e9566c934a57dff6da
MD5 14e9fccd4495abfc1c6f55ea03d5268d
BLAKE2b-256 13b957cd0966b826e709694cbda754545418e118bfd06cb9655497c4d7b8dbd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Flask_SeaSurf-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for Flask_SeaSurf-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab2978b3464bae9dc1baf0d1e7c4d9cbce9b10224f81323fdfb7e305eeb93940
MD5 aaae1a673e8f0e7fe8c93a46aede8fc4
BLAKE2b-256 39c48139a5c207432efb8b8245053975f4e024828e7735ad178e5faac658473e

See more details on using hashes here.

Supported by

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