improve slo support flag

This commit is contained in:
Benjamin Dauvergne 2016-05-31 15:24:04 +02:00
parent 0cb99dc97f
commit 3dc69ed7b2
1 changed files with 4 additions and 4 deletions

View File

@ -53,9 +53,9 @@ if ! xmlsec1 --verify --id-attr:ID EntitiesDescriptor --pubkey-cert-pem $CERTIFI
fi fi
if [ "$ALLOW_SLO" = "0" ]; then if [ "$ALLOW_SLO" = "0" ]; then
IDP_INITIATED_SLO=false SLO_SUPPORT=false
else else
IDP_INITIATED_SLO=true SLO_SUPPORT=true
fi fi
@ -65,7 +65,7 @@ cat <<EOF >$FIXTURE_TMP
{ {
"model": "saml.spoptionsidppolicy", "model": "saml.spoptionsidppolicy",
"fields" : { "fields" : {
"accept_slo" : false, "accept_slo" : $SLO_SUPPORT,
"accepted_name_id_format" : "transient,persistent", "accepted_name_id_format" : "transient,persistent",
"ask_user_consent" : false, "ask_user_consent" : false,
"authn_request_signed" : false, "authn_request_signed" : false,
@ -76,7 +76,7 @@ cat <<EOF >$FIXTURE_TMP
"federation_mode" : 0, "federation_mode" : 0,
"forward_slo" : true, "forward_slo" : true,
"http_method_for_slo_request" : 4, "http_method_for_slo_request" : 4,
"idp_initiated_sso" : $IDP_INITIATED_SLO, "idp_initiated_sso" : $SLO_SUPPORT,
"iframe_logout_timeout" : 300, "iframe_logout_timeout" : 300,
"name" : "Default", "name" : "Default",
"needs_iframe_logout" : false, "needs_iframe_logout" : false,