Fix: Correct SAML config path in entrypoint script
- Fix entrypoint.sh to place SAML config under auth.saml instead of root level, resolving "SP certificate and private key are not configured" error Fixes #541 Signed-off-by: pwnslinger <mahmadi@sorenhq.com> Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -111,6 +111,13 @@ EOF
|
|||||||
password:
|
password:
|
||||||
pepper: "${AUTH_PASSWORD_PEPPER:?AUTH_PASSWORD_PEPPER is required}"
|
pepper: "${AUTH_PASSWORD_PEPPER:?AUTH_PASSWORD_PEPPER is required}"
|
||||||
iterations: ${AUTH_PASSWORD_ITERATIONS:-1000000}
|
iterations: ${AUTH_PASSWORD_ITERATIONS:-1000000}
|
||||||
|
saml:
|
||||||
|
session-duration: ${SAML_SESSION_DURATION:-604800}
|
||||||
|
cleanup-interval-seconds: ${SAML_CLEANUP_INTERVAL_SECONDS:-0}
|
||||||
|
certificate: |
|
||||||
|
$(echo "${SAML_CERTIFICATE:-}" | sed 's/^/ /')
|
||||||
|
private-key: |
|
||||||
|
$(echo "${SAML_PRIVATE_KEY:-}" | sed 's/^/ /')
|
||||||
|
|
||||||
trust-auth:
|
trust-auth:
|
||||||
cookie-name: "${TRUST_AUTH_COOKIE_NAME:-TCT}"
|
cookie-name: "${TRUST_AUTH_COOKIE_NAME:-TCT}"
|
||||||
@@ -178,18 +185,6 @@ EOF
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add SAML config if any SAML variable is configured
|
|
||||||
cat >> "$CONFIG_FILE" <<EOF
|
|
||||||
|
|
||||||
saml:
|
|
||||||
session-duration: ${SAML_SESSION_DURATION:-604800}
|
|
||||||
cleanup-interval-seconds: ${SAML_CLEANUP_INTERVAL_SECONDS:-0}
|
|
||||||
certificate: |
|
|
||||||
$(echo "${SAML_CERTIFICATE:-}" | sed 's/^/ /')
|
|
||||||
private-key: |
|
|
||||||
$(echo "${SAML_PRIVATE_KEY:-}" | sed 's/^/ /')
|
|
||||||
EOF
|
|
||||||
|
|
||||||
echo "Configuration file generated at: $CONFIG_FILE"
|
echo "Configuration file generated at: $CONFIG_FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user