Sign inSign up

gunet/phpsaml-tester

By gunet

•Updated 12 months ago

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

Image
Buildkit cache
0

1.3K

gunet/phpsaml-tester repository overview

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

Tag summary

Content type

Image

Digest

sha256:fd6839ecd…

Size

178.2 MB

Last updated

12 months ago

docker pull gunet/phpsaml-tester