Invenio module module that provides SAML integration.
Project description
invenio-shibboleth
Invenio module that provides SAML integration.
These two modules has been merged into one:
invenio-saml Further documentation is available on https://invenio-saml.readthedocs.io/
flask-sso-saml Further documentation is available on https://flask-sso-saml.readthedocs.io/
Installation
pip install invenio-shibboleth
Configuration
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'),
},
}
Further documentation is available on https://invenio-shibboleth.readthedocs.io/
Changes
Version 0.1.0 (released TBD)
Initial public release.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file invenio-shibboleth-0.1.1.tar.gz
.
File metadata
- Download URL: invenio-shibboleth-0.1.1.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19ad45067fc8e822923e37db61bce313e7fe2cbf61a7b57c8e43613955158cee |
|
MD5 | fbe00a766d80f0c51508bbe88eee216c |
|
BLAKE2b-256 | ef46f3b7b08a44ba35395dc9bed51e9c43d6a971ff5d0252b5be8a09c57d64e3 |
File details
Details for the file invenio_shibboleth-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: invenio_shibboleth-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9e8781608b9ab62957028f666dffa6f188322007d6cf80c06b618677186df7f |
|
MD5 | 27d2a41b1a552250a9774ecc0bed6fe7 |
|
BLAKE2b-256 | 0962c29053135a6c4a9fb69cf4b02f9040b41a52247b4b7f6ec319082fcd1efd |