From 15a8da5387821ce7f38f50725b391789709ae9a0 Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Thu, 19 Nov 2015 14:14:34 +0100 Subject: Adding support for publishing digest and signing support in metadata. --- src/saml2/metadata.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/saml2/metadata.py') diff --git a/src/saml2/metadata.py b/src/saml2/metadata.py index eb337886..cb88fc52 100644 --- a/src/saml2/metadata.py +++ b/src/saml2/metadata.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +from saml2.algsupport import algorithm_support_in_metadata from saml2.md import AttributeProfile from saml2.sigver import security_context from saml2.config import Config @@ -728,6 +729,12 @@ def entity_descriptor(confd): item = mdattr.EntityAttributes(attribute=attr) entd.extensions.add_extension_element(item) + if not entd.extensions: + entd.extensions = md.Extensions() + + for item in algorithm_support_in_metadata(confd.xmlsec_binary): + entd.extensions.add_extension_element(item) + serves = confd.serves if not serves: raise SAMLError( -- cgit v1.2.1