Skip to main content

invenio-shibboleth

https://github.com/tu-graz-library/invenio-shibboleth/workflows/CI/badge.svg https://img.shields.io/coveralls/mb-wali/invenio-shibboleth.svg https://img.shields.io/github/tag/tu-graz-library/invenio-shibboleth.svg https://img.shields.io/pypi/dm/invenio-shibboleth.svg https://img.shields.io/github/license/tu-graz-library/invenio-shibboleth.svg https://img.shields.io/badge/code%20style-black-000000.svg

Invenio module that provides SAML integration.

These two modules has been merged into one:

Installation

First of all you need some packages, execute:

apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl

Install

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.

Metadata

Release files for invenio-shibboleth 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for invenio-shibboleth 1.0.4
File Size Uploaded
invenio-shibboleth-1.0.4.tar.gz 35.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for invenio-shibboleth 1.0.4
File Interpreter ABI Platform
invenio_shibboleth-1.0.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 61.2 kB

Release files / invenio-shibboleth-1.0.4.tar.gz

Download URL invenio-shibboleth-1.0.4.tar.gz
Size 35.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7eb7681ae735a965ddd239c12aa4d4cb554217a1606b211666bf1bcb07730af9
BLAKE2b-256 checksum
How to use checksums
4fd4600bcf92bff38e9da109f803d1e79f7133cb3e75e5afc868b41a927ad2e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

Release files / invenio_shibboleth-1.0.4-py2.py3-none-any.whl

Download URL invenio_shibboleth-1.0.4-py2.py3-none-any.whl
Size 26.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6026e1596b08a19d2ac4406f1dbec5b9b16d1d6448ba3921dc708b2e51871618
BLAKE2b-256 checksum
How to use checksums
7b4726e985ad084fad040f002085f0d87aaa2970d664dd0e19f48e54378843dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page