Skip to content
Merged
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
2 changes: 2 additions & 0 deletions config.edn.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
:oidc-userid-attributes [{:attribute "sub"}]
:oidc-name-attributes ["name" "unique_name" "family_name"]
:oidc-email-attributes ["email"]
:oidc-logout-redirect-url "${OIDC_LOGOUT_REDIRECT_URL}"
:oidc-perform-revoke-on-logout true
:log-authentication-details true
:languages [:en]
:catalogue-is-public true
Expand Down
12 changes: 12 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ urlencode() {
echo "$encoded"
}

# Ensure PUBLIC_URL ends with a trailing slash for post_logout_redirect_uri
PUBLIC_URL="${PUBLIC_URL%/}/"

# Derive Auth0 base from the configured OIDC metadata URL
# e.g. https://tenant.au.auth0.com/.well-known/openid-configuration -> https://tenant.au.auth0.com
AUTH0_BASE="${OIDC_METADATA_URL%/.well-known/openid-configuration}"
AUTH0_BASE="${AUTH0_BASE%/}"

# Build the logout URL dynamically (no hard-coding)
ENC_RETURN="$(urlencode "${PUBLIC_URL}")"
export OIDC_LOGOUT_REDIRECT_URL="${AUTH0_BASE}/oidc/logout?client_id=${OIDC_CLIENT_ID}&post_logout_redirect_uri=${ENC_RETURN}"

export DB_PASSWORD_ENCODED=$(urlencode "$DB_PASSWORD")

# Write Visa key files
Expand Down
Loading