Skip to content

Commit c784e72

Browse files
author
Roland Hedberg
committed
Added norEduOrgAcronym to static org info for swamid entity categories.
1 parent dc73a04 commit c784e72

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/saml2/entity_category/swamid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
NAME = ["givenName", "displayName", "sn"]
5-
STATIC_ORG_INFO = ["c", "o", "co"]
5+
STATIC_ORG_INFO = ["c", "o", "co", "norEduOrgAcronym"]
66
OTHER = ["eduPersonPrincipalName", "eduPersonScopedAffiliation", "mail"]
77

88
# These give you access to information

src/saml2/mdstore.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,8 @@ def vo_members(self, entity_id):
773773
return [m["text"] for m in ad["affiliate_member"]]
774774

775775
def entity_categories(self, entity_id):
776-
ext = self.__getitem__(entity_id)["extensions"]
776+
ent = self.__getitem__(entity_id)
777+
ext = ent["extensions"]
777778
res = []
778779
for elem in ext["extension_elements"]:
779780
if elem["__class__"] == ENTITYATTRIBUTES:

0 commit comments

Comments
 (0)