We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2706f9c commit 03ae0e9Copy full SHA for 03ae0e9
Sources/OAuth2Client/NXOAuth2Client.m
@@ -121,7 +121,11 @@ - (void)setAdditionalAuthenticationParameters:(NSDictionary *)value;
121
@"assertion_type", @"assertion" ];
122
123
for (id key in value) {
124
- NSAssert1([forbiddenKeys containsObject:key] == NO, @"The key %@ may not be used in additionalAuthenticationParameters", key);
+ if ([forbiddenKeys containsObject:key]) {
125
+ [[NSException exceptionWithName:NSInvalidArgumentException
126
+ reason:[NSString stringWithFormat:@"'%@' is not allowed as a key for additionalAuthenticationParameters", key]
127
+ userInfo:nil] raise];
128
+ }
129
}
130
131
additionalAuthenticationParameters = value;
0 commit comments