9a2d3a3760
To configure SAML, ENABLE_SAML must be set to True in .env. Additionally, the following files must be provided in ./secrets/saml/: - sp.crt - sp.key - saml_settings.json The files will be added as Docker secrets. Even though saml_settings.json does not contain secret information per se it is nonetheless added as a secret for simplicity. Technically, the file is equally suited to be configured as a "Docker config". Please note: - This patch has not been tested yet. - python3-saml's version should probably be pinned.
11 lines
411 B
Bash
11 lines
411 B
Bash
# SAML setup
|
|
if [[ "$ENABLE_SAML" = True ]]; then
|
|
echo "Setting up SAML"
|
|
for i in /run/secrets/saml_{cert,key,config}; do
|
|
[[ -f "$i" ]] || { echo "ERROR: $i not found!"; exit 3; }
|
|
done
|
|
ln -s /run/secrets/saml_cert /app/personal_data/var/certs/sp.crt
|
|
ln -s /run/secrets/saml_key /app/personal_data/var/certs/sp.key
|
|
ln -s /run/secrets/saml_config /app/personal_data/var/saml_settings.json
|
|
fi
|