File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 66
66
67
67
ENTITY_CATEGORY = "http://macedir.org/entity-category"
68
68
ENTITY_CATEGORY_SUPPORT = "http://macedir.org/entity-category-support"
69
+ ASSURANCE_CERTIFICATION = "urn:oasis:names:tc:SAML:attribute:assurance-certification"
69
70
70
71
REQ2SRV = {
71
72
# IDP
@@ -1243,6 +1244,15 @@ def supported_entity_categories(self, entity_id):
1243
1244
attributes = self .entity_attributes (entity_id )
1244
1245
return attributes .get (ENTITY_CATEGORY_SUPPORT , [])
1245
1246
1247
+ def assurance_certifications (self , entity_id ):
1248
+ assurance_certifications = (
1249
+ certification
1250
+ for name , values in self .entity_attributes (entity_id ).items ()
1251
+ if name == ASSURANCE_CERTIFICATION
1252
+ for certification in values
1253
+ )
1254
+ return assurance_certifications
1255
+
1246
1256
def entity_attributes (self , entity_id ):
1247
1257
"""
1248
1258
Get all entity attributes for an entry in the metadata.
You can’t perform that action at this time.
0 commit comments