- The account selector now has Add Account item - Last selected account is kept - Account token refreshment is done on startup and on select if need - Moved JIT status to LauncherMenuViewController's toolbar - Primary View Controller is now LauncherSplitViewController - More unmentioned(?), see diff.
25 lines
543 B
Objective-C
25 lines
543 B
Objective-C
#import "Foundation/Foundation.h"
|
|
|
|
typedef void(^Callback)(NSString* status, BOOL success);
|
|
|
|
@interface BaseAuthenticator : NSObject
|
|
|
|
@property(class) BaseAuthenticator *current;
|
|
|
|
@property NSMutableDictionary *authData;
|
|
|
|
+ (id)loadSavedName:(NSString *)name;
|
|
|
|
- (id)initWithInput:(NSString *)string;
|
|
- (void)loginWithCallback:(Callback)callback;
|
|
- (void)refreshTokenWithCallback:(Callback)callback;
|
|
- (BOOL)saveChanges;
|
|
|
|
@end
|
|
|
|
@interface LocalAuthenticator : BaseAuthenticator
|
|
@end
|
|
|
|
@interface MicrosoftAuthenticator : BaseAuthenticator
|
|
@end
|