Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions 8.4/alpine3.19/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions 8.4/bookworm/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ function docker_setup_env() {
export HOSTNAME="$(echo "${BASE_URL}" | sed -E -e 's/https?:\/\///')"
}

# configure SATOSA initially as an SP-to-IdP proxy using Signet's
# SAMLtest.ID testing service
# configure SATOSA initially as an SP-to-IdP proxy pointing to example.com
function docker_create_config() {
_make_conffile proxy_conf.yaml '
.BASE = $ENV.BASE_URL
Expand All @@ -97,8 +96,8 @@ function docker_create_config() {
_make_conffile plugins/backends/saml2_backend.yaml '
del(.config.acr_mapping, .config.idp_blacklist_file, .config.sp_config.metadata.local)
| .config.disco_srv = $ENV.SAML2_BACKEND_DISCO_SRV
| .config.sp_config.metadata.remote = [{ "url": "https://samltest.id/saml/idp" }]
'
| .config.sp_config.metadata.remote = [{ "url": "https://example.com/saml/idp" }]
# '
if [ -n "${SAML2_BACKEND_CERT}" -a -n "${SAML2_BACKEND_KEY}" ]; then
_make_conffile backend.crt '$ENV.SAML2_BACKEND_CERT'
_make_conffile backend.key '$ENV.SAML2_BACKEND_KEY'
Expand All @@ -108,7 +107,7 @@ function docker_create_config() {

_make_conffile plugins/frontends/saml2_frontend.yaml '
del(.config.idp_config.metadata.local)
| .config.idp_config.metadata.remote = [{ "url": "https://samltest.id/saml/sp" }]
| .config.idp_config.metadata.remote = [{ "url": "https://example.com/saml/sp" }]
'
_make_conffile plugins/frontends/ping_frontend.yaml

Expand Down