Skip to content

gunet/phpsaml-tester

Repository files navigation

A proof of concept installation of the php-saml toolkit

  • Build: docker build -t gunet/phpsaml-tester . or using the docker compose docker compose build
  • There's also a publically available Docker image so you usually only need to pull the image (docker compose pull or docker 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 to 127.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 the idp array in idp_config.php (which is included by settings.php). Otherwise you will have to find a way (volume mount) to add your own configuration

Environment Variables

  • 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

About

SAML PHP Tester (Docker image) based on php-saml toolkit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published