Monotone-Parent: 6661b82baa487cf8e72c04a8e31c6c05b7c58321

Monotone-Revision: 04b625432f61d61c8ad3468663a06f21d77e73f6

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-01-31T00:53:37
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2010-01-31 00:53:37 +00:00
parent 764e5404b8
commit 7ab5be678e
5 changed files with 21 additions and 8 deletions

View File

@ -1,5 +1,17 @@
2010-01-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoWebAuthenticator.h: conforms to
SOGoAuthenticator protocol.
* SoObjects/SOGo/SOGoDAVAuthenticator.h: conforms to
SOGoAuthenticator protocol.
* SoObjects/SOGo/SOGoProxyAuthenticator.m
(-imapPasswordInContext:forServer:forceRenew:): added method.
Returns nil when renew is set to YES so that no real retry occurs
(convention: null password is NO password) but returns an empty
string by default.
* SoObjects/SOGo/SOGoUserFolder.m (-ownerInContext:): invoke
setOwner: to retain user.

View File

@ -42,9 +42,6 @@
+ (id) sharedSOGoDAVAuthenticator;
- (SOGoUser *) userInContext: (WOContext *) _ctx;
- (NSString *) passwordInContext: (WOContext *) context;
@end
#endif /* _SOGoDAVAuthenticator_H__ */

View File

@ -41,13 +41,10 @@
@class SOGoUser;
// @interface SOGoProxyAuthenticator : SoHTTPAuthenticator <SOGoAuthenticator>
@interface SOGoProxyAuthenticator : NSObject
@interface SOGoProxyAuthenticator : NSObject <SOGoAuthenticator>
+ (id) sharedSOGoProxyAuthenticator;
- (SOGoUser *) userInContext: (WOContext *) _ctx;
- (NSString *) passwordInContext: (WOContext *) context;
@end
#endif /* _SOGoProxyAuthenticator_H__ */

View File

@ -103,6 +103,13 @@
return @"";
}
- (NSString *) imapPasswordInContext: (WOContext *) context
forServer: (NSString *) imapServer
forceRenew: (BOOL) renew
{
return (renew ? nil : @"");
}
- (WOResponse *) preprocessCredentialsInContext: (WOContext *) context
{
WOResponse *r;

View File

@ -30,7 +30,7 @@
@class SOGoUser;
@interface SOGoWebAuthenticator : SoCookieAuthenticator
@interface SOGoWebAuthenticator : SoCookieAuthenticator <SOGoAuthenticator>
+ (id) sharedSOGoWebAuthenticator;