summaryrefslogtreecommitdiff
path: root/idp
diff options
context:
space:
mode:
authorMarkus Krogh <markus@nordu.net>2017-10-04 12:47:06 +0200
committerMarkus Krogh <markus@nordu.net>2017-10-04 12:47:06 +0200
commit7a8bc378106a258b6ab2c069e39adebe6a7c42dd (patch)
tree19231f6cc27757cfbc22fe9d188b710da48dfbc2 /idp
parent170242b283a0eddfa298d450c811354b24df7d42 (diff)
Add IDP_ENCRYPTION_OPTIONAL option
Diffstat (limited to 'idp')
-rwxr-xr-xidp/shib-entrypoint.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/idp/shib-entrypoint.sh b/idp/shib-entrypoint.sh
index 33d534f..4ee5489 100755
--- a/idp/shib-entrypoint.sh
+++ b/idp/shib-entrypoint.sh
@@ -21,6 +21,11 @@ if [ -e /opt/data ]; then
fi
fi
+# Make encrytping optional (some SPs don't have encryption)
+if [ $IDP_ENCRYPTION_OPTIONAL ]; then
+ sed -i -e '/idp.encryption.optional=/ s/^#//' -e '/idp.encryption.optional=/ s/false/true/'
+fi
+
# FTICKS
if [ -n "$FTICKS_FEDERATION" ]; then
sed -i -e '/idp.fticks.federation=/ s/^#//' \