Skip to content

Commit 6ef6a25

Browse files
Merge pull request #751 from johanlundberg/swamid_policy_update_eduperson_targeted_id
Update of SWAMID policy regarding eduPersonTargetedID when no entity category is used
2 parents ddc2b52 + 7aec473 commit 6ef6a25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/saml2/entity_category/swamid.py

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

7373
RELEASE = {
74-
'': ['eduPersonTargetedID'],
74+
'': [''],
7575
SFS_1993_1153: ['norEduPersonNIN', 'eduPersonAssurance'],
7676
(RESEARCH_AND_EDUCATION, EU): NAME + STATIC_ORG_INFO + OTHER,
7777
(RESEARCH_AND_EDUCATION, NREN): NAME + STATIC_ORG_INFO + OTHER,

tests/test_37_entity_categories.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_filter_ava3():
102102
}
103103

104104
ava = policy.filter(ava, "urn:mace:example.com:saml:roland:sp")
105-
assert _eq(list(ava.keys()), ['eduPersonTargetedID', "norEduPersonNIN"])
105+
assert _eq(list(ava.keys()), ["norEduPersonNIN"])
106106

107107

108108
def test_filter_ava4():
@@ -131,7 +131,7 @@ def test_filter_ava4():
131131

132132
ava = policy.filter(ava, "urn:mace:example.com:saml:roland:sp")
133133
assert _eq(
134-
list(ava.keys()), ['eduPersonTargetedID', "givenName", "c", "mail", "sn"]
134+
list(ava.keys()), ["givenName", "c", "mail", "sn"]
135135
)
136136

137137

@@ -160,7 +160,7 @@ def test_filter_ava5():
160160

161161
ava = policy.filter(ava, "urn:mace:example.com:saml:roland:sp")
162162

163-
assert _eq(list(ava.keys()), ['eduPersonTargetedID'])
163+
assert _eq(list(ava.keys()), [])
164164

165165

166166
def test_idp_policy_filter():

0 commit comments

Comments
 (0)