mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-18 09:55:25 +00:00
fix(auth): add missing method to auth class
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -72,6 +72,12 @@
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSArray *)getCookiesIfNeeded: (WOContext *)_ctx
|
||||
{
|
||||
//Needs to be override by children if needed
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *) username
|
||||
{
|
||||
return _username;
|
||||
|
||||
Reference in New Issue
Block a user