Monotone-Parent: c80328c7641cc92221810e163f1f30bb47dbbd6e

Monotone-Revision: 32f5ff4c695e7e7d495966f686556dc800e22466

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-09-04T15:41:14
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2007-09-04 15:41:14 +00:00
parent e46d9d931d
commit cbf5928305
2 changed files with 20 additions and 3 deletions

View File

@ -1,5 +1,12 @@
2007-09-04 Wolfgang Sourdeau <wsourdeau@inverse.ca> 2007-09-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* Main/SOGo.m ([SOGo -authenticatorInContext:_ctx]): choose the
authenticator based on the request handler key. "dav" returns the
SOGoDAVAuthenticator, anything else returns the Web authenticator.
* SoObjects/SOGo/SOGoDAVAuthenticator.m: renamed module from
"SOGoAuthenticator".
* SoObjects/SOGo/SOGoWebAuthenticator.m: new class module * SoObjects/SOGo/SOGoWebAuthenticator.m: new class module
implementing a subclass of SoCookieAuthenticator, designed for implementing a subclass of SoCookieAuthenticator, designed for
web-based cookie authentication of users.m web-based cookie authentication of users.m

View File

@ -41,10 +41,11 @@
#import <WEExtensions/WEResourceManager.h> #import <WEExtensions/WEResourceManager.h>
#import <SoObjects/SOGo/SOGoAuthenticator.h> #import <SoObjects/SOGo/SOGoDAVAuthenticator.h>
#import <SoObjects/SOGo/SOGoPermissions.h>
#import <SoObjects/SOGo/SOGoUserFolder.h> #import <SoObjects/SOGo/SOGoUserFolder.h>
#import <SoObjects/SOGo/SOGoUser.h> #import <SoObjects/SOGo/SOGoUser.h>
#import <SoObjects/SOGo/SOGoPermissions.h> #import <SoObjects/SOGo/SOGoWebAuthenticator.h>
#import "build.h" #import "build.h"
#import "SOGoProductLoader.h" #import "SOGoProductLoader.h"
@ -233,7 +234,16 @@ static BOOL debugObjectAllocation = NO;
- (id) authenticatorInContext: (id) _ctx - (id) authenticatorInContext: (id) _ctx
{ {
return [$(@"SOGoAuthenticator") sharedSOGoAuthenticator]; id authenticator;
NSString *key;
key = [[_ctx request] requestHandlerKey];
if ([key isEqualToString: @"dav"])
authenticator = [SOGoDAVAuthenticator sharedSOGoDAVAuthenticator];
else
authenticator = [SOGoWebAuthenticator sharedSOGoWebAuthenticator];
return authenticator;
} }
/* name lookup */ /* name lookup */