Skip to content

Commit 15a8da5

Browse files
author
Roland Hedberg
committed
Adding support for publishing digest and signing support in metadata.
1 parent e9ba215 commit 15a8da5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/saml2/metadata.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python
2+
from saml2.algsupport import algorithm_support_in_metadata
23
from saml2.md import AttributeProfile
34
from saml2.sigver import security_context
45
from saml2.config import Config
@@ -728,6 +729,12 @@ def entity_descriptor(confd):
728729
item = mdattr.EntityAttributes(attribute=attr)
729730
entd.extensions.add_extension_element(item)
730731

732+
if not entd.extensions:
733+
entd.extensions = md.Extensions()
734+
735+
for item in algorithm_support_in_metadata(confd.xmlsec_binary):
736+
entd.extensions.add_extension_element(item)
737+
731738
serves = confd.serves
732739
if not serves:
733740
raise SAMLError(

0 commit comments

Comments
 (0)