update-renater-metadata.sh: corrige la création de la politique par défaut
This commit is contained in:
parent
fe0c8b88fd
commit
2a109c0bec
|
@ -7,7 +7,7 @@ BASEDIR=`dirname $0`
|
|||
METADATA_TMP=`tempfile`
|
||||
FILTERS_TMP=`tempfile`
|
||||
CERTIFICATE_TMP=`tempfile`
|
||||
FIXTURE_TMP=`tempfile`
|
||||
FIXTURE_TMP=`tempfile --suffix=.json`
|
||||
|
||||
function cleanup {
|
||||
rm -f $METADATA_TMP $FILTERS_TMP $CERTIFICATE_TMP $FIXTURE_TMP
|
||||
|
@ -59,14 +59,17 @@ cat <<EOF >$FIXTURE_TMP
|
|||
"pk": [
|
||||
"Default"
|
||||
],
|
||||
"model": "saml.libertyproviderpolicy",
|
||||
"model": "saml.spoptionsidppolicy",
|
||||
"fields": {
|
||||
"name": "Default",
|
||||
"authn_request_signature_check_hint": 2
|
||||
"enabled": true,
|
||||
"authn_request_signed": false
|
||||
}
|
||||
}]
|
||||
EOF
|
||||
|
||||
chown authentic $METADATA_TMP $FILTERS_TMP $FIXTURE_TMP
|
||||
|
||||
# Load fixture
|
||||
authentic2-ctl loaddata -v0 $FIXTURE_TMP
|
||||
|
||||
|
|
Reference in New Issue