Monotone-Parent: cb310c719dd9d9eb9bc98d19485f667d0d6bf777

Monotone-Revision: c80328c7641cc92221810e163f1f30bb47dbbd6e

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-09-04T15:40:26
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-09-04 15:40:26 +00:00
parent 0158375204
commit e46d9d931d
2 changed files with 14 additions and 12 deletions
@@ -19,13 +19,15 @@
02111-1307, USA.
*/
#ifndef __Main_SOGoAuthenticator_H__
#define __Main_SOGoAuthenticator_H__
#ifndef __Main_SOGoDAVAuthenticator_H__
#define __Main_SOGoDAVAuthenticator_H__
#include <NGObjWeb/SoHTTPAuthenticator.h>
#import <NGObjWeb/SoHTTPAuthenticator.h>
#import "SOGoAuthenticator.h"
/*
SOGoAuthenticator
SOGoDAVAuthenticator
This just overrides the login/pwd check method and always returns YES since
the password is already checked in Apache.
@@ -36,16 +38,16 @@
@class SOGoUser;
@interface SOGoAuthenticator : SoHTTPAuthenticator
@interface SOGoDAVAuthenticator : SoHTTPAuthenticator <SOGoAuthenticator>
{
NSString *authMethod;
}
+ (id) sharedSOGoAuthenticator;
+ (id) sharedSOGoDAVAuthenticator;
- (SOGoUser *) userInContext: (WOContext *) _ctx;
- (NSString *) passwordInContext: (WOContext *) context;
@end
#endif /* __Main_SOGoAuthenticator_H__ */
#endif /* __Main_SOGoDAVAuthenticator_H__ */
@@ -31,13 +31,13 @@
#import "SOGoPermissions.h"
#import "SOGoUser.h"
#import "SOGoAuthenticator.h"
#import "SOGoDAVAuthenticator.h"
@implementation SOGoAuthenticator
@implementation SOGoDAVAuthenticator
+ (id) sharedSOGoAuthenticator
+ (id) sharedSOGoDAVAuthenticator
{
static SOGoAuthenticator *auth = nil;
static SOGoDAVAuthenticator *auth = nil;
if (!auth)
auth = [self new];
@@ -164,4 +164,4 @@
// return rc;
// }
@end /* SOGoAuthenticator */
@end /* SOGoDAVAuthenticator */