Test environment for the SAML2/Shibboleth Feature in Artemis.
Instead of configuring the whole containers you can obtain a preconfigured data archive from the releases page
You may have to ..
- run all commands as root esp.
tar xzf data.tgz
to ensure that permissions are correct
- Clone the repository
- Run
docker compose up -d
and wait for the initial startup of the backend (config files will be copied). After that, stop the backend:docker-compose stop artemis
- Configure Artemis with Jenkins as usual. Setup SAML using the configuration file as follows:
The application-saml2.yml must look like that:
saml2:
username-pattern: 'saml2-{first_name}_{last_name}'
first-name-pattern: '{first_name}'
last-name-pattern: '{last_name}'
email-pattern: '{email}'
registration-number-pattern: '{uid}'
identity-providers:
- metadata: http://saml:8080/simplesaml/saml2/idp/metadata.php
registration-id: testidp
entity-id: artemis
cert-file: # data/saml/cert (optional) Set this path to the Certificate for encryption/signing or leave it blank
key-file: # data/saml/key path-to-key (optional) Set this path to the Key for encryption/ssigning or leave it blank
info.saml2.button-label: 'SAML Login'
info.saml2.enable-password: true
- (Enable Debug output)
- Start the stack using
docker compose up -d
- Log in with SAML2 using
user1
anduser1pass
- User mail addresses are fixed, testing is in this configuration only possible when overwriting the user information in the SAML docker.