Skip to content

fix: replace samltest.id with example.com default configs #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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