(fix) avoid using for now the XSRF code for proxy-auth (fixes #3668)

This commit is contained in:
Ludovic Marcotte committed 2016-05-11 08:55:05 -04:00
1 parent d802a7d5e4
commit a30d620502
3 files changed
+11 -9

No files matched your search

+5 -3
View File
@@ -218,15 +218,17 @@ static SoProduct *commonProduct = nil;
NSString *value, *token;
NSArray *creds;
if (![[SOGoSystemDefaults sharedSystemDefaults] xsrfValidationEnabled])
auth = [[WOApplication application]
authenticatorInContext: context];
if (![[SOGoSystemDefaults sharedSystemDefaults] xsrfValidationEnabled] ||
![auth isKindOfClass: [SOGoWebAuthenticator class]])
return [super performActionNamed: _actionName];
// We grab the X-XSRF-TOKEN header
token = [[context request] headerForKey: @"X-XSRF-TOKEN"];
// We compare it with our session key
auth = [[WOApplication application]
authenticatorInContext: context];
value = [[context request]
cookieValueForKey: [auth cookieNameInContext: context]];
creds = [auth parseCredentials: value];