Source dockerfile and files for dcsaml-idp test IDP
This Docker image sets up a test IDP using SimpleSamlPHP that you can use for SAML testing.
To build:
docker build -t bobrob/dcsaml-idp .
By default it contains two users: user1/user1pass, and user2/user2pass. You can change these and the first/last names in src/authsources.php and rebuild if necessary. If you don't want to rebuild the whole image you can also do this on a running image:
docker cp src/authsources.php [docker-image-id]:/var/www/simplesamlphp/config/authsources.php
based on the SimpleSamlPHP docker image from https://hub.docker.com/r/kristophjunge/test-saml-idp/
Sample command to create an image (also see makeimage.bat):
docker run --name=docker-saml -p 8080:80 -p 8443:443 \
-e SIMPLESAMLPHP_SP_ENTITY_ID=dockersaml.localhost \
-e SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE=https://dockersaml.localhost:8443/api/saml/SSO/alias/dockersaml.localhost \
-e SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE=https://dockersaml.localhost:8443/api/saml/SingleLogout/alias/dockersaml.localhost \
-d bobrob/dcsaml-idp
where "dockersaml" is your organization's virtual host.
This image also exists on docker.io at https://hub.docker.com/r/bobrob/dcsaml-idp/