Skip to content

Commit fa6a122

Browse files
committed
add strictness info to trust profiles
1 parent d7a1d88 commit fa6a122

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pyff/samlmd.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,8 @@ def discojson_sp(e, global_trust_info=None, global_md_sources=None):
935935
# Grab trust profile emements, and translate to json
936936
for profile_el in tinfo_el.findall('.//{%s}TrustProfile' % NS['ti']):
937937
name = profile_el.attrib['name']
938-
sp['profiles'][name] = {'entity': [], 'entities': []}
938+
strict = profile_el.attrib.get('strict', True)
939+
sp['profiles'][name] = {'strict': strict, 'entity': [], 'entities': []}
939940

940941
fallback_handler = tinfo_el.find('.//{%s}FallbackHandler' % NS['ti'])
941942
if fallback_handler is not None:

0 commit comments

Comments
 (0)