Set the value of WantAuthnRequestsSigned to True
authorRob Crittenden <rcritten@redhat.com>
Fri, 17 Jul 2015 20:15:35 +0000 (16:15 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Mon, 27 Jul 2015 09:51:25 +0000 (11:51 +0200)
The spec says the default should be False if not specified
but lasso sets it to true unless it is explicitly set to
False. So let's be explicit and set it to True.

https://fedorahosted.org/ipsilon/ticket/136

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
ipsilon/tools/saml2metadata.py

index d360ccd..2138777 100755 (executable)
@@ -86,6 +86,8 @@ class Metadata(object):
             raise ValueError('invalid role: %s' % role)
         self.role = mdElement(self.root, description)
         self.role.set('protocolSupportEnumeration', lasso.SAML2_PROTOCOL_HREF)
+        if role == IDP_ROLE:
+            self.role.set('WantAuthnRequestsSigned', 'true')
         return self.role
 
     def set_expiration(self, exp):