├── resources ├── simplesamlphp │ ├── templates │ │ ├── selectidp-embedded-wayf-end.twig │ │ ├── selectidp-embedded-wayf-start.twig │ │ └── selectidp-dropdown.twig │ ├── metadata │ │ └── xml │ │ │ └── auth-proxies.xml │ ├── bin │ │ ├── add_auth_proxy.sh │ │ ├── remove_auth_proxy_metadata.php │ │ ├── auth_proxy_functions.php │ │ └── add_auth_proxy_metadata.php │ └── simplesamlphp.patch ├── etc │ └── templates │ │ ├── embedded-wayf-loader.js.j2 │ │ ├── cron_root.j2 │ │ ├── module_cron.php.j2 │ │ ├── idp-proxy.conf.j2 │ │ ├── module_metarefresh-test.php.j2 │ │ ├── module_metarefresh.php.j2 │ │ ├── saml20-idp-hosted.php.j2 │ │ ├── embedded-wayf-config.js.j2 │ │ ├── authsources.php.j2 │ │ └── config.php.j2 ├── supervisord.conf ├── nginx │ └── nginx.conf ├── saml │ └── www │ │ └── sp │ │ └── discoresp.php └── php-fpm │ └── www.conf ├── .github └── workflows │ └── docker.yml ├── bin ├── start.sh └── idpproxyctl ├── LICENSE.txt ├── README.md └── Dockerfile /resources/simplesamlphp/templates/selectidp-embedded-wayf-end.twig: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /resources/simplesamlphp/metadata/xml/auth-proxies.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /resources/etc/templates/embedded-wayf-loader.js.j2: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /resources/etc/templates/cron_root.j2: -------------------------------------------------------------------------------- 1 | @reboot /usr/bin/sleep 10 && /usr/bin/curl --silent --insecure "https://localhost/simplesaml/module.php/cron/run/daily/{{ env("CRON_SECRET") }}" 2 | 0 0 * * * /usr/bin/curl --silent --insecure "https://localhost/simplesaml/module.php/cron/run/daily/{{ env("CRON_SECRET") }}" 3 | -------------------------------------------------------------------------------- /resources/etc/templates/module_cron.php.j2: -------------------------------------------------------------------------------- 1 | '{{ env("CRON_SECRET") }}', 8 | 'allowed_tags' => ['daily', 'hourly', 'frequent'], 9 | 'debug_message' => true, 10 | 'sendemail' => false, 11 | ]; 12 | -------------------------------------------------------------------------------- /resources/simplesamlphp/bin/add_auth_proxy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eu 4 | 5 | auth_proxy_host="$1" 6 | 7 | # check parameters 8 | if [ -z "$auth_proxy_host" ] ; then 9 | reportfailed "too few arguments." 10 | fi 11 | entity_id="https://$auth_proxy_host/simplesaml/module.php" 12 | metadata_url="https://$auth_proxy_host/simplesaml/module.php/saml/sp/metadata.php/default-sp" 13 | tempfile=`mktemp /tmp/xml_XXXXXX` 14 | curl --insecure --fail -o $tempfile $metadata_url 15 | php /var/www/simplesamlphp/bin/add_auth_proxy_metadata.php $entity_id $tempfile 16 | rm -f $tempfile 17 | -------------------------------------------------------------------------------- /resources/simplesamlphp/templates/selectidp-embedded-wayf-start.twig: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |