【文件属性】:
文件名称:Flask-HTTPAuth:简单的扩展,为Flask路由提供基本,摘要和令牌HTTP身份验证
文件大小:58KB
文件格式:ZIP
更新时间:2021-02-05 02:28:00
python flask security authentication tokens
Flask-HTTPAuth
简单扩展,为Flask路由提供基本和摘要HTTP身份验证。
安装
安装它的最简单方法是通过pip。
pip install Flask-HTTPAuth
基本身份验证示例
from flask import Flask
from flask_httpauth import HTTPBasicAuth
from werkzeug . security import generate_password_hash , check_password_hash
app = Flask ( __name__ )
auth = HTTPBasicAuth ()
users
【文件预览】:
Flask-HTTPAuth-master
----MANIFEST.in(80B)
----.travis.yml(544B)
----bin()
--------mkchangelog.py(2KB)
--------release(1KB)
----flask_httpauth.py(14KB)
----docs()
--------conf.py(8KB)
--------make.bat(7KB)
--------Makefile(7KB)
--------_themes()
--------index.rst(21KB)
--------_static()
----.github()
--------FUNDING.yml(88B)
--------workflows()
----tests()
--------test_basic_verify_password.py(3KB)
--------test_basic_hashed_password.py(2KB)
--------test_error_responses.py(1KB)
--------test_digest_get_password.py(8KB)
--------test_digest_ha1_password.py(2KB)
--------test_multi.py(5KB)
--------test_token.py(6KB)
--------__init__.py(0B)
--------test_basic_get_password.py(2KB)
--------test_digest_custom_realm.py(2KB)
--------test_roles.py(5KB)
--------test_basic_custom_realm.py(2KB)
----tox.ini(645B)
----LICENSE(1KB)
----CHANGES.md(15KB)
----AUTHORS(96B)
----examples()
--------token_auth.py(1KB)
--------roles_auth.py(1KB)
--------multi_auth.py(2KB)
--------basic_auth.py(1015B)
----setup.py(1KB)
----.gitignore(299B)
----README.md(2KB)