Skip to content

Commit ca0696c

Browse files
committed
Set proper entity category restrictions when release is set to be empty
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent dc7be03 commit ca0696c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: src/saml2/assertion.py

+2
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,8 @@ def post_entity_categories(maps, sp_entity_id=None, mds=None, required=None):
481481

482482
for attr in attrs:
483483
restrictions[attr] = None
484+
else:
485+
restrictions[''] = None
484486

485487
return restrictions
486488

Diff for: src/saml2/entity_category/swamid.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
HEI = 'http://www.swamid.se/category/hei-service' # Deprecated from 2021-03-31
7171

7272
RELEASE = {
73-
'': [''],
73+
'': [],
7474
SFS_1993_1153: ['norEduPersonNIN', 'eduPersonAssurance'],
7575
(RESEARCH_AND_EDUCATION, EU): NAME + STATIC_ORG_INFO + OTHER,
7676
(RESEARCH_AND_EDUCATION, NREN): NAME + STATIC_ORG_INFO + OTHER,

0 commit comments

Comments
 (0)