diff options
author | Johan Lundberg <lundberg@sunet.se> | 2021-12-07 18:20:49 +0100 |
---|---|---|
committer | Johan Lundberg <lundberg@sunet.se> | 2021-12-07 18:20:49 +0100 |
commit | e311ae82cf4c90b441e13adc55cd3f5074161bf8 (patch) | |
tree | 59935701c27ac5333d2ee4974d3c75857cab6605 /src/saml2/entity_category/swamid.py | |
parent | 72e69e43f555e3f37e8a21a89ac1f34402700a31 (diff) | |
download | pysaml2-e311ae82cf4c90b441e13adc55cd3f5074161bf8.tar.gz |
implement entity category https://myacademicid.org/entity-categories/esi for swamid
Diffstat (limited to 'src/saml2/entity_category/swamid.py')
-rw-r--r-- | src/saml2/entity_category/swamid.py | 5 |
1 files changed, 5 insertions, 0 deletions
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} |