summaryrefslogtreecommitdiff
path: root/src/saml2/metadata.py
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2015-11-19 14:14:34 +0100
committerRoland Hedberg <roland.hedberg@adm.umu.se>2015-11-19 14:14:34 +0100
commit15a8da5387821ce7f38f50725b391789709ae9a0 (patch)
tree65a9ac303dfbb555a7400d6a7049c64b3324b538 /src/saml2/metadata.py
parente9ba215136a7db0c43b2fd8098032d5b5afc70de (diff)
downloadpysaml2-15a8da5387821ce7f38f50725b391789709ae9a0.tar.gz
Adding support for publishing digest and signing support in metadata.
Diffstat (limited to 'src/saml2/metadata.py')
-rw-r--r--src/saml2/metadata.py7
1 files changed, 7 insertions, 0 deletions
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(