0004-saml2-extract-sessionNotOnOrAfter-and-use-it-to-set-.patch
wcs/qommon/saml2.py | ||
---|---|---|
358 | 358 |
if assertion.authnStatement[0].sessionIndex: |
359 | 359 |
session.lasso_session_index = assertion.authnStatement[0].sessionIndex |
360 | 360 | |
361 |
if assertion.authnStatement[0].sessionNotOnOrAfter: |
|
362 |
try: |
|
363 |
t = misc.parse_isotime(assertion.authnStatement[0].sessionNotOnOrAfter) |
|
364 |
except ValueError: |
|
365 |
return error_page('Error extracting SessionNotOnOrAfter') |
|
366 |
session.set_expire(t) |
|
367 | ||
361 | 368 |
user = self.lookup_user(session, login) |
362 | 369 |
if user: |
363 | 370 |
session.set_user(user.id) |
364 |
- |