summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBjörn Mattsson <Bjorn.Mattsson@bth.se>2018-04-10 16:32:03 +0200
committerBjörn Mattsson <Bjorn.Mattsson@bth.se>2018-04-10 16:32:03 +0200
commit93d6c363cd5cd32f6c490c2a879a96ee4d6dac6f (patch)
treed6f8b2d3b6e85f07295781ae43133c0185a307eb /Makefile
parent0b7ce78cb577db52948c0722aa4334207ebc5cd6 (diff)
Fixat till HTTP-Redirect i AssertionConsumerService
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b5a9b752..0fd28a7a 100644
--- a/Makefile
+++ b/Makefile
@@ -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/&/;s/validates/&/'; 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/.*/&/' ; 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"