fix(auth): add missing method to auth class

This commit is contained in:
Hivert Quentin
2025-03-19 14:05:49 +01:00
parent 7328623e11
commit d1d9024eca
4 changed files with 21 additions and 0 deletions
+3
View File
@@ -32,6 +32,9 @@
- (NSString *) passwordInContext: (WOContext *) context;
- (SOGoUser *) userInContext: (WOContext *) context;
/* To set additionnal cookies (override in subclasses !)*/
- (NSArray *)getCookiesIfNeeded: (WOContext *)_ctx;
- (NSString *) imapPasswordInContext: (WOContext *) context
forURL: (NSURL *) server
forceRenew: (BOOL) renew;
+6
View File
@@ -86,6 +86,12 @@
return rc;
}
- (NSArray *)getCookiesIfNeeded: (WOContext *)_ctx
{
//Needs to be override by children if needed
return nil;
}
- (NSString *) passwordInContext: (WOContext *) context
{
NSString *auth, *password;
+6
View File
@@ -103,6 +103,12 @@
return user;
}
- (NSArray *)getCookiesIfNeeded: (WOContext *)_ctx
{
//Needs to be override by children if needed
return nil;
}
#warning the DAV authenticator is pretty similar to this one. We should enable \
the use of the former for Basic auth type through some defaults.
- (NSString *) passwordInContext: (WOContext *) context
+6
View File
@@ -72,6 +72,12 @@
return nil;
}
- (NSArray *)getCookiesIfNeeded: (WOContext *)_ctx
{
//Needs to be override by children if needed
return nil;
}
- (NSString *) username
{
return _username;