File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ typedef void(^NXOAuth2PreparedAuthorizationURLHandler)(NSURL *preparedURL);
124
124
- (void )requestAccessToAccountWithType : (NSString *)accountType username : (NSString *)username password : (NSString *)password ;
125
125
- (void )requestAccessToAccountWithType : (NSString *)accountType assertionType : (NSURL *)assertionType assertion : (NSString *)assertion ;
126
126
- (void )requestClientCredentialsAccessWithType : (NSString *)accountType ;
127
+ - (void )addAccount : (NXOAuth2Account *)account ;
127
128
- (void )removeAccount : (NXOAuth2Account *)account ;
128
129
129
130
Original file line number Diff line number Diff line change @@ -470,6 +470,12 @@ - (void)oauthClientDidGetAccessToken:(NXOAuth2Client *)client;
470
470
}
471
471
472
472
NXOAuth2Account *account = [[NXOAuth2Account alloc ] initAccountWithOAuthClient: client accountType: accountType];
473
+
474
+ [self addAccount: account];
475
+ }
476
+
477
+ - (void )addAccount : (NXOAuth2Account *)account ;
478
+ {
473
479
@synchronized (self.accountsDict ) {
474
480
[self .accountsDict setValue: account forKey: account.identifier];
475
481
[NXOAuth2AccountStore storeAccountsInDefaultKeychain: self .accountsDict];
You can’t perform that action at this time.
0 commit comments