提供SAML集成的Invenio模块。
invenio-shibboleth的Python项目详细描述
因维尼奥·希伯勒斯
提供SAML集成的Invenio模块。在
这两个模块已合并为一个:
- invenio-saml更多文档可在https://invenio-saml.readthedocs.io/上获得
- flask-sso-saml更多文档可在https://flask-sso-saml.readthedocs.io/上获得
安装
pip install invenio-shibboleth
配置
from invenio_shibboleth.handlers import acs_handler_factory
SSO_SAML_IDPS={'onelogin':{# settings_file_path can be either json or xml."settings_file_path":"./saml/onelogin/onelogin.json","sp_cert_file":"./saml/onelogin/cert/sp.crt","sp_key_file":"./saml/onelogin/cert/sp.key",'settings':{'sp':{'NameIDFormat':'urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified',},'security':{'authnRequestsSigned':False,'failOnAuthnContextMismatch':False,'logoutRequestSigned':False,'logoutResponseSigned':False,'metadataCacheDuration':None,'metadataValidUntil':None,'nameIdEncrypted':False,'requestedAuthnContext':False,'requestedAuthnContextComparison':'exact','signMetadata':False,'signatureAlgorithm':'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256','wantAssertionsEncrypted':False,'wantAssertionsSigned':False,'wantAttributeStatement':False,'wantMessagesSigned':False,'wantNameId':True,'wantNameIdEncrypted':False,'digestAlgorithm':'http://www.w3.org/2001/04/xmlenc#sha256'},},"mappings":{# invenio #origin"email":"email","name":"username","surname":"full_name","external_id":"external_id",},'acs_handler':acs_handler_factory('onelogin'),},}
更多文档可在 https://invenio-shibboleth.readthedocs.io/
变化
版本0.1.0(发布待定)
- 首次公开发行。在
- 项目
标签: