From 7ab5be678eb61523f24eddcccc024dfc4bbb200a Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Sun, 31 Jan 2010 00:53:37 +0000 Subject: [PATCH] Monotone-Parent: 6661b82baa487cf8e72c04a8e31c6c05b7c58321 Monotone-Revision: 04b625432f61d61c8ad3468663a06f21d77e73f6 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-01-31T00:53:37 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 12 ++++++++++++ SoObjects/SOGo/SOGoDAVAuthenticator.h | 3 --- SoObjects/SOGo/SOGoProxyAuthenticator.h | 5 +---- SoObjects/SOGo/SOGoProxyAuthenticator.m | 7 +++++++ SoObjects/SOGo/SOGoWebAuthenticator.h | 2 +- 5 files changed, 21 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 70b1607fa..73d7ac1ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,17 @@ 2010-01-30 Wolfgang Sourdeau + * 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. diff --git a/SoObjects/SOGo/SOGoDAVAuthenticator.h b/SoObjects/SOGo/SOGoDAVAuthenticator.h index 37e0becff..0691cb2bf 100644 --- a/SoObjects/SOGo/SOGoDAVAuthenticator.h +++ b/SoObjects/SOGo/SOGoDAVAuthenticator.h @@ -42,9 +42,6 @@ + (id) sharedSOGoDAVAuthenticator; -- (SOGoUser *) userInContext: (WOContext *) _ctx; -- (NSString *) passwordInContext: (WOContext *) context; - @end #endif /* _SOGoDAVAuthenticator_H__ */ diff --git a/SoObjects/SOGo/SOGoProxyAuthenticator.h b/SoObjects/SOGo/SOGoProxyAuthenticator.h index 8bbc73a86..d32ac5e9a 100644 --- a/SoObjects/SOGo/SOGoProxyAuthenticator.h +++ b/SoObjects/SOGo/SOGoProxyAuthenticator.h @@ -41,13 +41,10 @@ @class SOGoUser; // @interface SOGoProxyAuthenticator : SoHTTPAuthenticator -@interface SOGoProxyAuthenticator : NSObject +@interface SOGoProxyAuthenticator : NSObject + (id) sharedSOGoProxyAuthenticator; -- (SOGoUser *) userInContext: (WOContext *) _ctx; -- (NSString *) passwordInContext: (WOContext *) context; - @end #endif /* _SOGoProxyAuthenticator_H__ */ diff --git a/SoObjects/SOGo/SOGoProxyAuthenticator.m b/SoObjects/SOGo/SOGoProxyAuthenticator.m index 447ee340e..a3c50c3bb 100644 --- a/SoObjects/SOGo/SOGoProxyAuthenticator.m +++ b/SoObjects/SOGo/SOGoProxyAuthenticator.m @@ -103,6 +103,13 @@ return @""; } +- (NSString *) imapPasswordInContext: (WOContext *) context + forServer: (NSString *) imapServer + forceRenew: (BOOL) renew +{ + return (renew ? nil : @""); +} + - (WOResponse *) preprocessCredentialsInContext: (WOContext *) context { WOResponse *r; diff --git a/SoObjects/SOGo/SOGoWebAuthenticator.h b/SoObjects/SOGo/SOGoWebAuthenticator.h index 84f476ea1..12a295c1c 100644 --- a/SoObjects/SOGo/SOGoWebAuthenticator.h +++ b/SoObjects/SOGo/SOGoWebAuthenticator.h @@ -30,7 +30,7 @@ @class SOGoUser; -@interface SOGoWebAuthenticator : SoCookieAuthenticator +@interface SOGoWebAuthenticator : SoCookieAuthenticator + (id) sharedSOGoWebAuthenticator;