File: adfs_v1x.py

package info (click to toggle)
python-pysaml2 4.5.0-4%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 27,664 kB
  • sloc: xml: 229,124; python: 61,007; makefile: 160; sh: 107
file content (20 lines) | stat: -rw-r--r-- 882 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# See http://technet.microsoft.com/en-us/library/cc733065(v=ws.10).aspx
# and http://technet.microsoft.com/en-us/library/ee913589(v=ws.10).aspx
# for information regarding the default claim types supported by
# Microsoft ADFS v1.x.

MAP = {
    "identifier": "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified",
    "fro": {
        'http://schemas.xmlsoap.org/claims/commonname': 'commonName',
        'http://schemas.xmlsoap.org/claims/emailaddress': 'emailAddress',
        'http://schemas.xmlsoap.org/claims/group': 'group',
        'http://schemas.xmlsoap.org/claims/upn': 'upn',
        },
    "to": {
        'commonName': 'http://schemas.xmlsoap.org/claims/commonname',
        'emailAddress': 'http://schemas.xmlsoap.org/claims/emailaddress',
        'group': 'http://schemas.xmlsoap.org/claims/group',
        'upn': 'http://schemas.xmlsoap.org/claims/upn',
    }
}