dscsrf-1.0
توضیحات
Double-submit CSRF protection for Flask applications.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dscsrf-1.0 |
| نام | dscsrf |
| نسخه کتابخانه | 1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | sc4reful |
| ایمیل نویسنده | notanemail@insorg-mail.info |
| آدرس صفحه اصلی | https://github.com/sc4reful/dscsrf |
| آدرس اینترنتی | https://pypi.org/project/dscsrf/ |
| مجوز | MIT |
# 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() }}
نحوه نصب
نصب پکیج whl dscsrf-1.0:
pip install dscsrf-1.0.whl
نصب پکیج tar.gz dscsrf-1.0:
pip install dscsrf-1.0.tar.gz