summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorolavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53>2013-03-06 12:53:17 +0000
committerolavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53>2013-03-06 12:53:17 +0000
commit0710259d6aef2d3389664845b7a30a28cd625671 (patch)
treed49cc054ab50ed9d2010608bc126ff876be07cac
parent4abc14dbdd510410f35ef52939ef36f21da8e265 (diff)
downloadmod_auth_mellon-0710259d6aef2d3389664845b7a30a28cd625671.tar.gz
mod_auth_mellon-0710259d6aef2d3389664845b7a30a28cd625671.tar.xz
mod_auth_mellon-0710259d6aef2d3389664845b7a30a28cd625671.zip
Fix SP-initiated logout.
We need to restore the profile state when creating a logout request, so that Lasso has the information it requires for logging out. If we do not do this, every logout "fail" with the log message: User attempted to initiate logout without being loggged in. git-svn-id: https://modmellon.googlecode.com/svn/trunk@172 a716ebb1-153a-0410-b759-cfb97c6a1b53
-rw-r--r--auth_mellon_handler.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/auth_mellon_handler.c b/auth_mellon_handler.c
index 200c37f..c0054a0 100644
--- a/auth_mellon_handler.c
+++ b/auth_mellon_handler.c
@@ -860,6 +860,7 @@ static int am_init_logout_request(request_rec *r, LassoLogout *logout)
/* Disable the the local session (in case the IdP doesn't respond). */
mellon_session = am_get_request_session(r);
if(mellon_session != NULL) {
+ am_restore_lasso_profile_state(r, &logout->parent, mellon_session);
mellon_session->logged_in = 0;
am_release_request_session(r, mellon_session);
}