This project contains the Docker image of the test SAML2 identity provider for X4B.
The following environment variables should be set for the image:
| Variable | Default value |
|---|---|
| SIMPLESAMLPHP_ADMIN_PASSWORD | secret |
| SIMPLESAMLPHP_SECRET_SALT | defaultsecretsalt |
| SIMPLESAMLPHP_SP_ENTITY_ID | |
| SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE |
The following accounts are configured in authsources.php
| Username | Password | Roles |
|---|---|---|
| kyle | kyle | Admin |
| arnold | arnold | Read, Write |
| hank | hank | Read |
The user name is set in an attribute called UTCode@DOMAIN and the roles list is sent in the ProfileList attribute.
The container exposes the port 8080.
The image is in the xcomponent private Docker resgistry xcomponent/x4b-test-saml-idp
Here is a sample command to run the image:
docker run --name=testsamlidp_idp \
-p 8080:8080 \
-e SIMPLESAMLPHP_SP_ENTITY_ID=http://your.service.com \
-e SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE=http://your.service.com/logincallback \
-d xcomponent/x4b-test-saml-idp
When the container is up you should be able to access its web page on http://localhost:8080/simplesaml.
The identity provider's metadata is accessible on http://localhost:8080/simplesaml/saml2/idp/metadata.php.
docker pull xcomponent/x4b-test-saml-idp:latest