diff options
author | Björn Mattsson <Bjorn.Mattsson@bth.se> | 2018-04-10 16:32:03 +0200 |
---|---|---|
committer | Björn Mattsson <Bjorn.Mattsson@bth.se> | 2018-04-10 16:32:03 +0200 |
commit | 93d6c363cd5cd32f6c490c2a879a96ee4d6dac6f (patch) | |
tree | d6f8b2d3b6e85f07295781ae43133c0185a307eb /Makefile | |
parent | 0b7ce78cb577db52948c0722aa4334207ebc5cd6 (diff) |
Fixat till HTTP-Redirect i AssertionConsumerService
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -92,7 +92,7 @@ swamid-externals-sp-2.0.xml: swamid-externals-2.0.mxml syntaxtest: clean dependencies schematest -pedantic: clean dependencies schematest testRefedsRnS testGeantCoCo +pedantic: clean dependencies schematest testRefedsRnS testGeantCoCo testEduGAINchecks schematest: @fail=false ; for x in $(MXML); do test=`xmllint --xinclude --nowarning --noout --path schema --schema schema.xsd $$x 2>&1`; rc=$$?; echo $$test | sed 's/fails to validate/[1;31m&[0m/;s/validates/[1;32m&[0m/'; if [ $$rc -gt 0 ]; then fail=true ; fi; done ; if $$fail ; then exit 1 ; fi @@ -152,7 +152,14 @@ testGeantCoCo: if [ -z "$$requestedAttribute" ] ; then echo " $$x: Missing RequestedAttribute." | sed 's/.*/[1;31m&[0m/' ; fi ; \ fi ; \ done - + +testEduGAINchecks: + @echo "Checking for attributes not allowed in entities exported to eduGAIN" + @for x in `cat swamid-edugain-*.mxml | grep -v "\.mxml$$" | grep "xi:include" | awk -F\" '{print $$2}' | xargs grep -l SPSSODescriptor` ; do \ + if ( grep -q "AssertionConsumerService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" $$x ); then \ + echo " $$x: AssertionConsumerService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\" not allowed"; \ + fi ; \ + done testMDUI: @echo "Checking for bad lang codes" |