Skip to content

Commit

Permalink
xmlsec1 problems with windows (#2222)
Browse files Browse the repository at this point in the history
Limited installation of msidp to none windows systems. Described missing xmlsec1 for windows in the docs.
  • Loading branch information
ReimarBauer authored Mar 20, 2024
1 parent de7d336 commit 6950e26
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions docs/conf_sso_test_msscolab.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/Open-MSS/MSS/issues/2128#issuecomment-2009075861>`_ 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
Expand Down
8 changes: 4 additions & 4 deletions localbuild/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -95,7 +95,7 @@ requirements:
- python-slugify
- flask-login
- pysaml2
- libxmlsec1
- libxmlsec1 # [not win]

test:
imports:
Expand All @@ -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.'
Expand Down
4 changes: 3 additions & 1 deletion mslib/msidp/idp_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"""

# Parts of the code

import logging
import os.path

from saml2 import BINDING_HTTP_ARTIFACT
Expand All @@ -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.
Expand Down

0 comments on commit 6950e26

Please sign in to comment.