File tree Expand file tree Collapse file tree 3 files changed +36
-5
lines changed Expand file tree Collapse file tree 3 files changed +36
-5
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,24 @@ Configuration directives
55
55
General directives
56
56
------------------
57
57
58
+ assurance_certification
59
+ ^^^^^^^^^^^^^^^^^^^^^^^
60
+
61
+ Format::
62
+
63
+ "assurance_specification": [
64
+ "https://refeds.org/sirtfi",
65
+ ]
66
+
67
+ Generates an `Attribute ` element with name-format
68
+ `urn:oasis:names:tc:SAML:2.0:attrname-format:uri ` and name
69
+ `urn:oasis:names:tc:SAML:attribute:assurance-certification ` that contains
70
+ `AttributeValue ` elements with the given values from the list.
71
+ The element is added under the generated metadata `EntityDescriptor ` as an
72
+ `Extension ` element under the `EntityAttributes ` element.
73
+
74
+ Read more about `representing assurance information at the specification <https://wiki.oasis-open.org/security/SAML2IDAssuranceProfile >`_.
75
+
58
76
attribute_map_dir
59
77
^^^^^^^^^^^^^^^^^
60
78
@@ -666,7 +684,7 @@ Where the endpoints for the services provided are.
666
684
This directive has as value a dictionary with one or more of the following keys:
667
685
668
686
* artifact_resolution_service (aa, idp and sp)
669
- * `assertion_consumer_service <https://wiki.shibboleth.net/confluence/display/CONCEPT/AssertionConsumerService >`_ (sp)
687
+ * `assertion_consumer_service <https://wiki.shibboleth.net/confluence/display/CONCEPT/AssertionConsumerService >`_ (sp)
670
688
* assertion_id_request_service (aa, idp)
671
689
* attribute_service (aa)
672
690
* manage_name_id_service (aa, idp)
Original file line number Diff line number Diff line change 52
52
"disable_ssl_certificate_validation" ,
53
53
"preferred_binding" ,
54
54
"session_storage" ,
55
+ "assurance_certification" ,
55
56
"entity_category" ,
56
57
"xmlsec_path" ,
57
58
"extension_schemas" ,
@@ -221,7 +222,8 @@ def __init__(self, homedir="."):
221
222
self .preferred_binding = PREFERRED_BINDING
222
223
self .domain = ""
223
224
self .name_qualifier = ""
224
- self .entity_category = ""
225
+ self .assurance_certification = []
226
+ self .entity_category = []
225
227
self .crypto_backend = 'xmlsec1'
226
228
self .id_attr_name = None
227
229
self .scope = ""
@@ -568,11 +570,11 @@ def config_factory(_type, config):
568
570
"""
569
571
570
572
:type _type: str
571
- :param _type:
572
-
573
+ :param _type:
574
+
573
575
:type config: str or dict
574
576
:param config: Name of file with pysaml2 config or CONFIG dict
575
-
577
+
576
578
:return:
577
579
"""
578
580
if _type == "sp" :
Original file line number Diff line number Diff line change @@ -692,6 +692,17 @@ def entity_descriptor(confd):
692
692
if confd .contact_person is not None :
693
693
entd .contact_person = do_contact_persons_info (confd .contact_person )
694
694
695
+ if confd .assurance_certification :
696
+ if not entd .extensions :
697
+ entd .extensions = md .Extensions ()
698
+ ava = [AttributeValue (text = c ) for c in confd .assurance_certification ]
699
+ attr = Attribute (
700
+ attribute_value = ava ,
701
+ name = "urn:oasis:names:tc:SAML:attribute:assurance-certification"
702
+ )
703
+ item = mdattr .EntityAttributes (attribute = attr )
704
+ entd .extensions .add_extension_element (item )
705
+
695
706
if confd .entity_category :
696
707
if not entd .extensions :
697
708
entd .extensions = md .Extensions ()
You can’t perform that action at this time.
0 commit comments