认证、注册、作为第三方(社会)账户管理认证和saml支持您的leonardo网站
leonardo-module-auth的Python项目详细描述
Leonardo的身份验证后端,现在支持
- https://github.com/pennersr/django-allauth
- https://bitbucket.org/lgs/djangosaml2/overview基于https://github.com/onelogin/python-saml
安装
pip install leonardo-module-auth # or as extras pip install django-leonardo[auth]
接下来的步骤取决于您的案例
如果要使用所有验证
# leonardo appsAPPS+=['leonardo_module_oauth']
python manage.py migrate
有关更多配置提供程序,请访问http://django-allauth.readthedocs.org/en/latest/providers.html
或saml标准
pip install leonardo_module_auth[saml] pip install django-leonardo[saml]
APPS+=['leonardo_module_saml']
对于saml,您必须手动安装这样的saml依赖项
注意:安装取决于libxmlsec1-dev库