金字塔
pyramid_httpauth的Python项目详细描述
这是用于验证凭据的金字塔的身份验证策略 使用http摘要身份验证或http基本身份验证协议。
引用https://github.com/mozilla-services/pyramid_digestauth/
附加功能:
- Add support for HTTP Basic Authentication
- Add support for Python 3
- Tested with Python 2.7 and Python 3.4
用法
要使用这个包,在app函数中,只需包含它。
config.include(“pyramid_httpauth”)
在你身上development.ini
- httpauth.schema: default schema to challenge client (digest
- or basic), default=digest
- httpauth.realm: realm string for auth challenge header
- httpauth.qop: qop string for auth challenge header
- (used for Digest Auth only)
- httpauth.nonce_manager: name of NonceManager class to use
- (used for Digest Auth only)
- httpauth.nonce_manager_secret: The secret key used to sign on nounce, used
- for built-in SignedNonceManager (if httpauth.nonce_manager is not provided).
- httpauth.domain: domain string for auth challenge header
- httpauth.get_password: name of password-retrieval function
- httpauth.groupfinder: name of group-finder callback function
1.0.5
- 修复错误:如果
未配置密钥。
- 添加confighttpauth.nonce_manager_secret以配置此值。
- 如果未配置此值,则记录关键消息。
1.0
- 包装
- 初始版本