Load fixture to reset default validation of AuthnRequest signatures
This commit is contained in:
parent
3526038d9c
commit
e8d04e4929
|
@ -7,9 +7,10 @@ BASEDIR=`dirname $0`
|
|||
METADATA_TMP=`tempfile`
|
||||
FILTERS_TMP=`tempfile`
|
||||
CERTIFICATE_TMP=`tempfile`
|
||||
FIXTURE_TMP=`tmpfile`
|
||||
|
||||
function cleanup {
|
||||
rm -f $METADATA_TMP $FILTERS_TMP $CERTIFICATE_TMP;
|
||||
rm -f $METADATA_TMP $FILTERS_TMP $CERTIFICATE_TMP $FIXTURE_TMP
|
||||
}
|
||||
|
||||
trap "cleanup" EXIT
|
||||
|
@ -51,5 +52,23 @@ if ! xmlsec1 --verify --id-attr:ID EntitiesDescriptor --pubkey-cert-pem $CERTIFI
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Build fixture
|
||||
cat <<EOF >$FIXTURE_TMP
|
||||
[
|
||||
{
|
||||
"pk": [
|
||||
"Default"
|
||||
],
|
||||
"model": "saml.libertyproviderpolicy",
|
||||
"fields": {
|
||||
"name": "Default",
|
||||
"authn_request_signature_check_hint": 2
|
||||
}
|
||||
}]
|
||||
EOF
|
||||
|
||||
# Load fixture
|
||||
authentic2-ctl loaddata -v0 $FIXTURE_TMP
|
||||
|
||||
# Load metadataas
|
||||
authentic2-ctl sync-metadata --source=renater --shibboleth-attribute-filter-policy=$FILTERS_TMP --sp -v1 $METADATA_TMP
|
||||
|
|
Reference in New Issue