We now handle correctly the SOGo logout when using SAML (#2376 and #2379)

This commit is contained in:
Ludovic Marcotte
2014-11-27 11:37:08 -05:00
parent c3715c9485
commit 1b715e0812
11 changed files with 125 additions and 26 deletions
+13 -1
View File
@@ -673,11 +673,13 @@ static memcached_st *handle = NULL;
{
key = [NSString stringWithFormat: @"cas-ticket:%@", ticket];
[self removeValueForKey: key];
[self debugWithFormat: @"Removed session: %@", session];
[self debugWithFormat: @"Removed CAS session: %@", session];
}
}
//
// SAML2 support
//
- (NSDictionary *) saml2LoginDumpsForIdentifier: (NSString *) identifier
{
NSString *key, *jsonString;
@@ -698,6 +700,16 @@ static memcached_st *handle = NULL;
[self setValue: [dump jsonRepresentation] forKey: key];
}
- (void) removeSAML2LoginDumpsForIdentifier: (NSString *) identifier
{
NSString *key;
key = [NSString stringWithFormat: @"saml2-login:%@", identifier];
[self removeValueForKey: key];
[self debugWithFormat: @"Removed SAML2 session for identifier: %@", identifier];
}
//
// ACL caching code
//