From 13217b1e7b1f6a5432016dd91622484f12ea9cfc Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Jul 17 2015 20:17:32 +0000 Subject: Set the value of WantAuthnRequestsSigned to True 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 --- diff --git a/ipsilon/tools/saml2metadata.py b/ipsilon/tools/saml2metadata.py index 98e7c67..4368d85 100755 --- a/ipsilon/tools/saml2metadata.py +++ b/ipsilon/tools/saml2metadata.py @@ -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):