This commit fixes #568: unexpected parameter "&state=" in "code" parameter M.C103_BAY.2.XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&state=XXXXXXXXXXX Another change includes a fix for not explicitly showing MSA error message (also see #568)
25 lines
536 B
Objective-C
25 lines
536 B
Objective-C
#import "Foundation/Foundation.h"
|
|
|
|
typedef void(^Callback)(id 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
|