File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ - (NXOAuth2Client *)oauthClient;
81
81
NSURL *authorizeURL = [configuration objectForKey: kNXOAuth2AccountStoreConfigurationAuthorizeURL ];
82
82
NSURL *tokenURL = [configuration objectForKey: kNXOAuth2AccountStoreConfigurationTokenURL ];
83
83
NSString *tokenType = [configuration objectForKey: kNXOAuth2AccountStoreConfigurationTokenType ];
84
-
84
+ NSDictionary *additionalQueryParams = [configuration objectForKey: kNXOAuth2AccountStoreConfigurationAdditionalAuthenticationParameters ];
85
+
85
86
oauthClient = [[NXOAuth2Client alloc ] initWithClientID: clientID
86
87
clientSecret: clientSecret
87
88
authorizeURL: authorizeURL
@@ -90,6 +91,10 @@ - (NXOAuth2Client *)oauthClient;
90
91
tokenType: tokenType
91
92
persistent: NO
92
93
delegate: self ];
94
+ if (additionalQueryParams) {
95
+ oauthClient.additionalAuthenticationParameters = additionalQueryParams;
96
+ }
97
+
93
98
}
94
99
}
95
100
return oauthClient;
Original file line number Diff line number Diff line change @@ -321,6 +321,11 @@ - (void)requestTokenWithAuthGrant:(NSString *)authGrant redirectURL:(NSURL *)red
321
321
if (self.desiredScope ) {
322
322
[parameters setObject: [[self .desiredScope allObjects ] componentsJoinedByString: @" " ] forKey: @" scope" ];
323
323
}
324
+
325
+ if (self.additionalAuthenticationParameters ) {
326
+ [parameters addEntriesFromDictionary: self .additionalAuthenticationParameters];
327
+ }
328
+
324
329
authConnection = [[NXOAuth2Connection alloc ] initWithRequest: tokenRequest
325
330
requestParameters: parameters
326
331
oauthClient: self
You can’t perform that action at this time.
0 commit comments