0003-saml2-store-current-value-of-OPENED_SESSION_COOKIE-i.patch
wcs/qommon/saml2.py | ||
---|---|---|
377 | 377 |
user = self.lookup_user(session, login) |
378 | 378 |
if user: |
379 | 379 |
session.set_user(user.id) |
380 |
# save value of OPENED_SESSION_COOKIE for wcs.root.RootDirectory.try_passive_sso() |
|
381 |
OPENED_SESSION_COOKIE = get_publisher().get_site_option('idp_session_cookie_name') |
|
382 |
if OPENED_SESSION_COOKIE: |
|
383 |
if OPENED_SESSION_COOKIE in get_request().cookies: |
|
384 |
session.opened_session_value = get_request().cookies[OPENED_SESSION_COOKIE] |
|
380 | 385 |
else: |
381 | 386 |
return error_page('Error associating user on SSO') |
382 | 387 |
session.lasso_identity_provider_id = login.remoteProviderId |
wcs/qommon/sessions.py | ||
---|---|---|
88 | 88 |
forced = False |
89 | 89 |
# should only be overwritten by authentication methods |
90 | 90 |
extra_user_variables = None |
91 |
opened_session_value = None |
|
91 | 92 | |
92 | 93 |
username = None # only set on password authentication |
93 | 94 | |
94 |
- |