Skip to content

Commit e3063f0

Browse files
authored
Merge pull request #387 from SUNET/ft-swamid-attribute-release-policy-mergebranch
SWAMID attribute release policy updates
2 parents 1979ae7 + 3b2eb0b commit e3063f0

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/saml2/entity_category/swamid.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
__author__ = 'rolandh'
22

3-
4-
NAME = ["givenName", "displayName", "sn"]
3+
NAME = ["givenName", "displayName", "sn", "cn"]
54
STATIC_ORG_INFO = ["c", "o", "co", "norEduOrgAcronym", "schacHomeOrganization",
65
'schacHomeOrganizationType']
7-
OTHER = ["eduPersonPrincipalName", "eduPersonScopedAffiliation", "mail"]
6+
OTHER = ["eduPersonPrincipalName", "eduPersonScopedAffiliation", "mail",
7+
"eduPersonAssurance"]
8+
9+
R_AND_S = ['eduPersonTargetedID',
10+
'eduPersonPrincipalName',
11+
'mail',
12+
'displayName',
13+
'givenName',
14+
'sn',
15+
'eduPersonScopedAffiliation'
16+
]
817

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

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

1828
RELEASE = {
1929
"": ["eduPersonTargetedID"],
20-
SFS_1993_1153: ["norEduPersonNIN"],
30+
SFS_1993_1153: ["norEduPersonNIN", "eduPersonAssurance"],
2131
(RESEARCH_AND_EDUCATION, EU): NAME + STATIC_ORG_INFO + OTHER,
2232
(RESEARCH_AND_EDUCATION, NREN): NAME + STATIC_ORG_INFO + OTHER,
2333
(RESEARCH_AND_EDUCATION, HEI): NAME + STATIC_ORG_INFO + OTHER,
34+
RESEARCH_AND_SCHOLARSHIP: R_AND_S,
2435
}

0 commit comments

Comments
 (0)