Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NXOAuth2Account+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@
- (instancetype)initAccountWithAccessToken:(NXOAuth2AccessToken *)accessToken
accountType:(NSString *)accountType;

@property (nonatomic, strong) NXOAuth2AccessToken *accessToken;

@end
8 changes: 5 additions & 3 deletions Sources/OAuth2Client/NXOAuth2Account.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#pragma mark -

@interface NXOAuth2Account () <NXOAuth2ClientDelegate, NXOAuth2TrustDelegate>

@property (nonatomic, strong) NXOAuth2AccessToken *accessToken;
@end

#pragma mark -
Expand Down Expand Up @@ -84,7 +86,7 @@ - (NXOAuth2Client *)oauthClient;
@synchronized (oauthClient) {
if (oauthClient == nil) {
NSDictionary *configuration = [[NXOAuth2AccountStore sharedStore] configurationForAccountType:self.accountType];

NSString *clientID = [configuration objectForKey:kNXOAuth2AccountStoreConfigurationClientID];
NSString *clientSecret = [configuration objectForKey:kNXOAuth2AccountStoreConfigurationSecret];
NSURL *authorizeURL = [configuration objectForKey:kNXOAuth2AccountStoreConfigurationAuthorizeURL];
Expand All @@ -106,11 +108,11 @@ - (NXOAuth2Client *)oauthClient;
if (additionalQueryParams) {
oauthClient.additionalAuthenticationParameters = additionalQueryParams;
}

if (customHeaderFields) {
oauthClient.customHeaderFields = customHeaderFields;
}

}
}
return oauthClient;
Expand Down