mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-20 06:03:20 +00:00
(fix) avoid using for now the XSRF code for proxy-auth (fixes #3668)
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user