Skip to content

Commit

Permalink
Merge branch 'master' of github.com:rohe/pysaml2
Browse files Browse the repository at this point in the history
  • Loading branch information
rohe committed Oct 11, 2017
2 parents 72a516a + e3063f0 commit 847e970
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/saml2/entity_category/swamid.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
__author__ = 'rolandh'


NAME = ["givenName", "displayName", "sn"]
NAME = ["givenName", "displayName", "sn", "cn"]
STATIC_ORG_INFO = ["c", "o", "co", "norEduOrgAcronym", "schacHomeOrganization",
'schacHomeOrganizationType']
OTHER = ["eduPersonPrincipalName", "eduPersonScopedAffiliation", "mail"]
OTHER = ["eduPersonPrincipalName", "eduPersonScopedAffiliation", "mail",
"eduPersonAssurance"]

R_AND_S = ['eduPersonTargetedID',
'eduPersonPrincipalName',
'mail',
'displayName',
'givenName',
'sn',
'eduPersonScopedAffiliation'
]

# These give you access to information
RESEARCH_AND_EDUCATION = "http://www.swamid.se/category/research-and-education"
SFS_1993_1153 = "http://www.swamid.se/category/sfs-1993-1153"
RESEARCH_AND_SCHOLARSHIP = "http://refeds.org/category/research-and-scholarship"

# presently these don't by themself
EU = "http://www.swamid.se/category/eu-adequate-protection"
Expand All @@ -17,8 +27,9 @@

RELEASE = {
"": ["eduPersonTargetedID"],
SFS_1993_1153: ["norEduPersonNIN"],
SFS_1993_1153: ["norEduPersonNIN", "eduPersonAssurance"],
(RESEARCH_AND_EDUCATION, EU): NAME + STATIC_ORG_INFO + OTHER,
(RESEARCH_AND_EDUCATION, NREN): NAME + STATIC_ORG_INFO + OTHER,
(RESEARCH_AND_EDUCATION, HEI): NAME + STATIC_ORG_INFO + OTHER,
RESEARCH_AND_SCHOLARSHIP: R_AND_S,
}

0 comments on commit 847e970

Please sign in to comment.