From 0a87ff97b6a7d4add9b8413074a0567e289386af Mon Sep 17 00:00:00 2001 From: Jean Raby Date: Fri, 21 Jun 2013 09:36:54 -0400 Subject: [PATCH] cosmetic fix, no functional change added a POST payload to test this code --- SoObjects/SOGo/SOGoCASSession.m | 4 +--- Tests/README-cas-logoutRequest | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 Tests/README-cas-logoutRequest diff --git a/SoObjects/SOGo/SOGoCASSession.m b/SoObjects/SOGo/SOGoCASSession.m index 6ab230df2..ce0f8917e 100644 --- a/SoObjects/SOGo/SOGoCASSession.m +++ b/SoObjects/SOGo/SOGoCASSession.m @@ -117,7 +117,6 @@ CASLogoutRequest *rq; SOGoCache *cache; NSBundle *bundle; - NSDictionary *root; NSString *mapFile, *sessionIndex; bundle = [NSBundle bundleForClass: [self class]]; @@ -144,8 +143,7 @@ if ([sessionIndex length]) { - cache = [SOGoCache sharedCache]; - [cache removeCASSessionWithTicket: sessionIndex]; + [[SOGoCache sharedCache] removeCASSessionWithTicket: sessionIndex]; } } diff --git a/Tests/README-cas-logoutRequest b/Tests/README-cas-logoutRequest new file mode 100644 index 000000000..c9b9c9eab --- /dev/null +++ b/Tests/README-cas-logoutRequest @@ -0,0 +1,23 @@ +Sample HTTP request to exercise the CAS handleLogoutRequest code. +Can be fed to sogo using nc or openssl s_client: + nc devsogo 80