Skip to content

Commit b5bac9f

Browse files
author
Roland Hedberg
committed
Attribute maps for ADFS
1 parent 553d0e8 commit b5bac9f

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

src/saml2/attributemaps/adfs_v1x.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# See http://technet.microsoft.com/en-us/library/cc733065(v=ws.10).aspx
2+
# and http://technet.microsoft.com/en-us/library/ee913589(v=ws.10).aspx
3+
# for information regarding the default claim types supported by
4+
# Microsoft ADFS v1.x.
5+
6+
MAP = {
7+
"identifier": "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified",
8+
"fro": {
9+
'http://schemas.xmlsoap.org/claims/commonname': 'commonName',
10+
'http://schemas.xmlsoap.org/claims/emailaddress': 'emailAddress',
11+
'http://schemas.xmlsoap.org/claims/group': 'group',
12+
'http://schemas.xmlsoap.org/claims/upn': 'upn',
13+
},
14+
"to": {
15+
'commonName': 'http://schemas.xmlsoap.org/claims/commonname',
16+
'emailAddress': 'http://schemas.xmlsoap.org/claims/emailaddress',
17+
'group': 'http://schemas.xmlsoap.org/claims/group',
18+
'upn': 'http://schemas.xmlsoap.org/claims/upn',
19+
}
20+
}

src/saml2/attributemaps/adfs_v20.py

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# See http://technet.microsoft.com/en-us/library/ee913589(v=ws.10).aspx
2+
# for information regarding the default claim types supported by
3+
# Microsoft ADFS v2.0.
4+
5+
MAP = {
6+
"identifier": "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified",
7+
"fro": {
8+
'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress': 'emailAddress',
9+
'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname': 'givenName',
10+
'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name': 'name',
11+
'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn': 'upn',
12+
'http://schemas.xmlsoap.org/claims/commonname': 'commonName',
13+
'http://schemas.xmlsoap.org/claims/group': 'group',
14+
'http://schemas.microsoft.com/ws/2008/06/identity/claims/role': 'role',
15+
'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname': 'surname',
16+
'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/privatepersonalidentifier': 'privatePersonalId',
17+
'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier': 'nameId',
18+
'http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationmethod': 'authenticationMethod',
19+
'http://schemas.xmlsoap.com/ws/2005/05/identity/claims/denyonlysid': 'denyOnlySid',
20+
'http://schemas.microsoft.com/ws/2008/06/identity/claims/denyonlyprimarysid': 'denyOnlyPrimarySid',
21+
'http://schemas.microsoft.com/ws/2008/06/identity/claims/denyonlyprimarygroupsid': 'denyOnlyPrimaryGroupSid',
22+
'http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsid': 'groupSid',
23+
'http://schemas.microsoft.com/ws/2008/06/identity/claims/primarygroupsid': 'primaryGroupSid',
24+
'http://schemas.microsoft.com/ws/2008/06/identity/claims/primarysid': 'primarySid',
25+
'http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname': 'windowsAccountName',
26+
},
27+
"to": {
28+
'emailAddress': 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress',
29+
'givenName': 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname',
30+
'name': 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name',
31+
'upn': 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn',
32+
'commonName': 'http://schemas.xmlsoap.org/claims/commonname',
33+
'group': 'http://schemas.xmlsoap.org/claims/group',
34+
'role': 'http://schemas.microsoft.com/ws/2008/06/identity/claims/role',
35+
'surname': 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname',
36+
'privatePersonalId': 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/privatepersonalidentifier',
37+
'nameId': 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier',
38+
'authenticationMethod': 'http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationmethod',
39+
'denyOnlySid': 'http://schemas.xmlsoap.com/ws/2005/05/identity/claims/denyonlysid',
40+
'denyOnlyPrimarySid': 'http://schemas.microsoft.com/ws/2008/06/identity/claims/denyonlyprimarysid',
41+
'denyOnlyPrimaryGroupSid': 'http://schemas.microsoft.com/ws/2008/06/identity/claims/denyonlyprimarygroupsid',
42+
'groupSid': 'http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsid',
43+
'primaryGroupSid': 'http://schemas.microsoft.com/ws/2008/06/identity/claims/primarygroupsid',
44+
'primarySid': 'http://schemas.microsoft.com/ws/2008/06/identity/claims/primarysid',
45+
'windowsAccountName': 'http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname',
46+
}
47+
}

0 commit comments

Comments
 (0)