A proof of concept installation of the php-saml toolkit
- Build:
docker build -t gunet/phpsaml-tester .
or using the docker composedocker compose build
- There's also a publically available Docker image so you usually only need to pull the image (
docker compose pull
ordocker pull gunet/phpsaml-tester
)
- Run:
docker run --rm -p 80:80 --name saml-php gunet/phpsaml-tester
- Docker compose:
docker compose up -d
- Includes a simple-ldap and simple-cas stack.
- You need to have
host.docker.internal
point to127.0.0.1
for things to work - Go to
http://host.docker.internal
- Metadata endpoint:
http://localhost/endpoints/metadata.php
- The docker entrypoint will make sure to download the
IDP_METADATA
and parse these in order to create theidp
array inidp_config.php
(which is included bysettings.php
). Otherwise you will have to find a way (volume mount) to add your own configuration
SP_ENTITYID=http://localhost
DEBUG_MODE=true
IDP_METADATA=https://sso/idp/metadata
SP_SIGN_AUTHNREQUEST=false
SP_WANT_MESSAGE_SIGNED=false
SP_WANT_ASSERTIONS_ENCRYPTED=false
SP_WANT_ASSERTIONS_SIGNED=false
SP_SIGN_LOGOUTREQUEST=false
SP_SIGN_LOGOUTRESPONSE=false