Skip to main content

Invenio module module that provides SAML integration.

Project description

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/mb-wali/invenio-shibboleth.svg https://img.shields.io/pypi/dm/invenio-shibboleth.svg https://img.shields.io/github/license/mb-wali/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.

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

invenio-shibboleth-1.0.3.tar.gz (35.0 kB view details)

Uploaded Source

Built Distribution

invenio_shibboleth-1.0.3-py2.py3-none-any.whl (26.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file invenio-shibboleth-1.0.3.tar.gz.

File metadata

  • Download URL: invenio-shibboleth-1.0.3.tar.gz
  • Upload date:
  • Size: 35.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.7

File hashes

Hashes for invenio-shibboleth-1.0.3.tar.gz
Algorithm Hash digest
SHA256 de6578e55d3fbb926fc8d8475533e79bf830086fa832754aae7e418ae6bbf09f
MD5 dccda8f12d420b7cfc9152b738b39587
BLAKE2b-256 df57d8e34a9cd1d5991f3a043badbf3b70b529c923cb5aa8f2345457bbe46a0c

See more details on using hashes here.

File details

Details for the file invenio_shibboleth-1.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: invenio_shibboleth-1.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.7

File hashes

Hashes for invenio_shibboleth-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6cf05d4eff90cb858499b09397af30f98194b653f65dc5eba269e0c2eff55d0e
MD5 84f1e0638fe0176ffe67f04b9bf6d5b4
BLAKE2b-256 bfeeb0694452fad8bf66a7a49e3a93a9030892988db1d705bd69ef72d2392bcc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page