Skip to content

Commit 1228db6

Browse files
author
Roland Hedberg
committed
Merge pull request #270 from HaToHo/master
Added openosi-0.82.schema, fix for wsgi-sp and added some idp-testdata
2 parents 3a9326f + 0f209eb commit 1228db6

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

example/idp2/idp_user.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
"o": "Example Co.",
4848
"ou": "IT",
4949
"initials": "P",
50+
"co": "co",
51+
"mail": "mail",
52+
"noreduorgacronym": "noreduorgacronym",
5053
"schacHomeOrganization": "example.com",
5154
"email": "[email protected]",
5255
"displayName": "Test Testsson",

example/sp-wsgi/sp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def __init__(self):
167167

168168
def get_user(self, environ):
169169
cookie = environ.get("HTTP_COOKIE", '')
170-
170+
cookie = cookie.decode("UTF-8")
171171
logger.debug("Cookie: %s" % cookie)
172172
if cookie:
173173
cookie_obj = SimpleCookie(cookie)
@@ -205,7 +205,7 @@ def set_cookie(self, user):
205205
cookie[self.cookie_name]['path'] = "/"
206206
cookie[self.cookie_name]["expires"] = _expiration(480)
207207
logger.debug("Cookie expires: %s" % cookie[self.cookie_name]["expires"])
208-
return cookie.output().split(": ", 1)
208+
return cookie.output().encode("UTF-8").split(": ", 1)
209209

210210

211211
# -----------------------------------------------------------------------------

src/saml2/attributemaps/saml_uri.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
SCHAC = 'urn:oid:1.3.6.1.4.1.25178.1.2.'
1212
SIS = 'urn:oid:1.2.752.194.10.2.'
1313
UMICH = 'urn:oid:1.3.6.1.4.1.250.1.57.'
14-
14+
OPENOSI_OID = 'urn:oid:1.3.6.1.4.1.27630.2.1.1.' #openosi-0.82.schema http://www.openosi.org/osi/display/ldap/Home
1515

1616
MAP = {
1717
'identifier': 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
@@ -68,6 +68,13 @@
6868
NOREDUPERSON_OID+'10': 'norEduPersonLegalName',
6969
NOREDUPERSON_OID+'11': 'norEduOrgSchemaVersion',
7070
NOREDUPERSON_OID+'12': 'norEduOrgNIN',
71+
OPENOSI_OID+'17': 'osiHomeUrl',
72+
OPENOSI_OID+'19': 'osiPreferredTZ',
73+
OPENOSI_OID+'72': 'osiICardTimeLastUpdated',
74+
OPENOSI_OID+'104': 'osiMiddleName',
75+
OPENOSI_OID+'107': 'osiOtherEmail',
76+
OPENOSI_OID+'109': 'osiOtherHomePhone',
77+
OPENOSI_OID+'120': 'osiWorkURL',
7178
PKCS_9+'1': 'email',
7279
SCHAC+'1': 'schacMotherTongue',
7380
SCHAC+'2': 'schacGender',
@@ -208,6 +215,13 @@
208215
'norEduPersonLegalName': NOREDUPERSON_OID+'10',
209216
'norEduPersonNIN': NOREDUPERSON_OID+'5',
210217
'o': X500ATTR_OID+'10',
218+
'osiHomeUrl': OPENOSI_OID+'17',
219+
'osiPreferredTZ': OPENOSI_OID+'19',
220+
'osiICardTimeLastUpdated': OPENOSI_OID+'72',
221+
'osiMiddleName': OPENOSI_OID+'104',
222+
'osiOtherEmail': OPENOSI_OID+'107',
223+
'osiOtherHomePhone': OPENOSI_OID+'109',
224+
'osiWorkURL': OPENOSI_OID+'120',
211225
'ou': X500ATTR_OID+'11',
212226
'owner': X500ATTR_OID+'32',
213227
'physicalDeliveryOfficeName': X500ATTR_OID+'19',

0 commit comments

Comments
 (0)