diff --git a/docs/conf_sso_test_msscolab.rst b/docs/conf_sso_test_msscolab.rst index 85ee7054f..e688b2597 100644 --- a/docs/conf_sso_test_msscolab.rst +++ b/docs/conf_sso_test_msscolab.rst @@ -2,6 +2,9 @@ Configuration MSS Colab Server with Testing IdP for SSO ======================================================= Testing IDP (`mslib/msidp`) is specifically designed for testing the Single Sign-On (SSO) process with the mscolab server using PySAML2. +.. note:: + The important module `xmlsec1 `_ is not provided for windows operations systems. Therefore this feature is not available on windows. + Here is documentation that explains the configuration of the MSS Colab Server with the testing IdP. Getting started diff --git a/localbuild/meta.yaml b/localbuild/meta.yaml index a5fa39de7..babfe7aad 100644 --- a/localbuild/meta.yaml +++ b/localbuild/meta.yaml @@ -9,7 +9,7 @@ source: path: ../ build: - skip: true # [py<38] + skip: true # [py<310] number: 1000 script: "{{ PYTHON }} -m pip install . --no-deps -vv" # [not win] entry_points: @@ -19,7 +19,7 @@ build: - mswms_demodata = mslib.mswms.demodata:main - mscolab = mslib.mscolab.mscolab:main - mssautoplot = mslib.utils.mssautoplot:main - - msidp = mslib.msidp.idp:main + - msidp = mslib.msidp.idp:main # [not win] requirements: build: @@ -95,7 +95,7 @@ requirements: - python-slugify - flask-login - pysaml2 - - libxmlsec1 + - libxmlsec1 # [not win] test: imports: @@ -105,7 +105,7 @@ test: - mswms_demodata -h - msui -h - mscolab -h - - msidp -h + - msidp -h # [not win] about: summary: 'A web service based tool to plan atmospheric research flights.' diff --git a/mslib/msidp/idp_conf.py b/mslib/msidp/idp_conf.py index 86ced60a0..21d726a4e 100644 --- a/mslib/msidp/idp_conf.py +++ b/mslib/msidp/idp_conf.py @@ -25,7 +25,7 @@ """ # Parts of the code - +import logging import os.path from saml2 import BINDING_HTTP_ARTIFACT @@ -38,6 +38,8 @@ from saml2.saml import NAMEID_FORMAT_TRANSIENT XMLSEC_PATH = os.path.join(os.environ["CONDA_PREFIX"], "bin", "xmlsec1") +if not os.path.exists(XMLSEC_PATH): + logging.warning("%s not found", XMLSEC_PATH) # CRTs and metadata files can be generated through the mscolab server. # if configured that way CRTs DIRs should be same in both IDP and mscolab server.