From e311ae82cf4c90b441e13adc55cd3f5074161bf8 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Tue, 7 Dec 2021 18:20:49 +0100 Subject: implement entity category https://myacademicid.org/entity-categories/esi for swamid --- src/saml2/entity_category/swamid.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/saml2') diff --git a/src/saml2/entity_category/swamid.py b/src/saml2/entity_category/swamid.py index 00066d21..61525b70 100644 --- a/src/saml2/entity_category/swamid.py +++ b/src/saml2/entity_category/swamid.py @@ -58,11 +58,14 @@ GEANT_COCO = [ 'schacHomeOrganizationType', ] +MYACADEMICID_ESI = ['schacPersonalUniqueCode'] + # These give you access to information RESEARCH_AND_EDUCATION = 'http://www.swamid.se/category/research-and-education' # Deprecated from 2021-03-31 SFS_1993_1153 = 'http://www.swamid.se/category/sfs-1993-1153' # Deprecated from 2021-03-31 RESEARCH_AND_SCHOLARSHIP = 'http://refeds.org/category/research-and-scholarship' COCO = 'http://www.geant.net/uri/dataprotection-code-of-conduct/v1' +ESI = 'https://myacademicid.org/entity-categories/esi' # presently these don't by themself EU = 'http://www.swamid.se/category/eu-adequate-protection' # Deprecated from 2021-03-31 @@ -77,6 +80,8 @@ RELEASE = { (RESEARCH_AND_EDUCATION, HEI): NAME + STATIC_ORG_INFO + OTHER, RESEARCH_AND_SCHOLARSHIP: R_AND_S, COCO: GEANT_COCO, + ESI: MYACADEMICID_ESI, + (ESI, COCO): MYACADEMICID_ESI + GEANT_COCO, } ONLY_REQUIRED = {COCO: True} -- cgit v1.2.1