Skip to content

Commit 051d106

Browse files
authored
Merge pull request #597 from AzureAD/release/1.3.6
Release 1.3.6 common core
2 parents 28d7eb5 + 817a9f9 commit 051d106

File tree

92 files changed

+417
-214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+417
-214
lines changed

IdentityCore/src/MSIDError.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ typedef NS_ENUM(NSInteger, MSIDErrorCode)
235235
MSIDErrorBrokerApplicationTokenReadFailed = -51813
236236
};
237237

238-
extern NSError *MSIDCreateError(NSString *domain, NSInteger code, NSString *errorDescription, NSString *oauthError, NSString *subError, NSError *underlyingError, NSUUID *correlationId, NSDictionary *additionalUserInfo);
238+
extern NSError *MSIDCreateError(NSString *domain, NSInteger code, NSString *errorDescription, NSString *oauthError, NSString *subError, NSError *underlyingError, NSUUID *correlationId, NSDictionary *additionalUserInfo, BOOL logErrorDescription);
239239

240240
extern MSIDErrorCode MSIDErrorCodeForOAuthError(NSString *oauthError, MSIDErrorCode defaultCode);
241241

IdentityCore/src/MSIDError.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,19 @@
4242
NSString *MSIDHttpErrorCodeDomain = @"MSIDHttpErrorCodeDomain";
4343
NSString *MSIDInvalidTokenResultKey = @"MSIDInvalidTokenResultKey";
4444

45-
NSError *MSIDCreateError(NSString *domain, NSInteger code, NSString *errorDescription, NSString *oauthError, NSString *subError, NSError *underlyingError, NSUUID *correlationId, NSDictionary *additionalUserInfo)
45+
NSError *MSIDCreateError(NSString *domain, NSInteger code, NSString *errorDescription, NSString *oauthError, NSString *subError, NSError *underlyingError, NSUUID *correlationId, NSDictionary *additionalUserInfo, BOOL logErrorDescription)
4646
{
4747
id<MSIDErrorConverting> errorConverter = MSIDErrorConverter.errorConverter;
4848

4949
if (!errorConverter)
5050
{
5151
errorConverter = MSIDErrorConverter.defaultErrorConverter;
5252
}
53+
54+
if (logErrorDescription)
55+
{
56+
MSID_LOG_WITH_CORR(MSIDLogLevelError, correlationId, @"Creating Error with description: %@", errorDescription);
57+
}
5358

5459
return [errorConverter errorWithDomain:domain
5560
code:code
@@ -158,7 +163,7 @@ void MSIDFillAndLogError(NSError **error, MSIDErrorCode errorCode, NSString *err
158163
{
159164
if (error)
160165
{
161-
*error = MSIDCreateError(MSIDErrorDomain, errorCode, errorDescription, nil, nil, nil, correlationID, nil);
166+
*error = MSIDCreateError(MSIDErrorDomain, errorCode, errorDescription, nil, nil, nil, correlationID, nil, NO);
162167
}
163168

164169
MSID_LOG_WITH_CORR_PII(MSIDLogLevelError, correlationID, @"Encountered error with code %ld, description %@", (long)errorCode, MSID_PII_LOG_MASKABLE(errorDescription));

IdentityCore/src/MSIDJsonSerializer.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ - (NSDictionary *)deserializeJSON:(NSData *)data error:(NSError *__autoreleasing
125125
if (error)
126126
{
127127
NSString *errorDescription = [NSString stringWithFormat:@"Attempt to initialize JSON object with nil data in (%@)", NSStringFromClass(self.class)];
128-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, errorDescription, nil, nil, nil, nil, nil);
128+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, errorDescription, nil, nil, nil, nil, nil, NO);
129129
}
130130

131131
return nil;

IdentityCore/src/cache/MSIDKeychainTokenCache.m

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ - (nullable instancetype)initWithGroup:(nullable NSString *)keychainGroup error:
115115
{
116116
if (error)
117117
{
118-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Failed to retrieve teamId from keychain.", nil, nil, nil, nil, nil);
118+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Failed to retrieve teamId from keychain.", nil, nil, nil, nil, nil, YES);
119119
}
120120

121121
MSID_LOG_WITH_CTX(MSIDLogLevelError, nil, @"Failed to retrieve teamId from keychain.");
@@ -134,7 +134,7 @@ - (nullable instancetype)initWithGroup:(nullable NSString *)keychainGroup error:
134134
{
135135
if (error)
136136
{
137-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Failed to set keychain access group.", nil, nil, nil, nil, nil);
137+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Failed to set keychain access group.", nil, nil, nil, nil, nil, YES);
138138
}
139139

140140
MSID_LOG_WITH_CTX(MSIDLogLevelError, nil, @"Failed to set keychain access group.");
@@ -179,7 +179,7 @@ - (BOOL)saveToken:(MSIDCredentialCacheItem *)item
179179
{
180180
if (error)
181181
{
182-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Key is not valid. Make sure generic field is not nil.", nil, nil, nil, context.correlationId, nil);
182+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Key is not valid. Make sure generic field is not nil.", nil, nil, nil, context.correlationId, nil, YES);
183183
}
184184
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Set keychain item with invalid key.");
185185
return NO;
@@ -193,7 +193,7 @@ - (BOOL)saveToken:(MSIDCredentialCacheItem *)item
193193
{
194194
if (error)
195195
{
196-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Failed to serialize token item.", nil, nil, nil, context.correlationId, nil);
196+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Failed to serialize token item.", nil, nil, nil, context.correlationId, nil, NO);
197197
}
198198
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Failed to serialize token item.");
199199
return NO;
@@ -219,7 +219,7 @@ - (MSIDCredentialCacheItem *)tokenWithKey:(MSIDCacheKey *)key
219219
{
220220
if (error)
221221
{
222-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorCacheMultipleUsers, @"The token cache store for this resource contains more than one user.", nil, nil, nil, context.correlationId, nil);
222+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorCacheMultipleUsers, @"The token cache store for this resource contains more than one user.", nil, nil, nil, context.correlationId, nil, YES);
223223
}
224224

225225
return nil;
@@ -268,7 +268,7 @@ - (BOOL)saveAccount:(MSIDAccountCacheItem *)item
268268
{
269269
if (error)
270270
{
271-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Failed to serialize account item.", nil, nil, nil, context.correlationId, nil);
271+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Failed to serialize account item.", nil, nil, nil, context.correlationId, nil, YES);
272272
}
273273
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Failed to serialize token item.");
274274
return NO;
@@ -293,7 +293,7 @@ - (MSIDAccountCacheItem *)accountWithKey:(MSIDCacheKey *)key
293293
{
294294
if (error)
295295
{
296-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorCacheMultipleUsers, @"The token cache store for this resource contains more than one user.", nil, nil, nil, context.correlationId, nil);
296+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorCacheMultipleUsers, @"The token cache store for this resource contains more than one user.", nil, nil, nil, context.correlationId, nil, YES);
297297
}
298298

299299
return nil;
@@ -323,7 +323,7 @@ - (BOOL)saveAppMetadata:(MSIDAppMetadataCacheItem *)item
323323
if (error)
324324
{
325325
NSString *errorMessage = @"Item or serializer is nil while saving app metadata!";
326-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, errorMessage, nil, nil, nil, context.correlationId, nil);
326+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, errorMessage, nil, nil, nil, context.correlationId, nil, YES);
327327
}
328328
return NO;
329329
}
@@ -335,7 +335,7 @@ - (BOOL)saveAppMetadata:(MSIDAppMetadataCacheItem *)item
335335
if (error)
336336
{
337337
NSString *errorMessage = @"Failed to serialize app metadata item.";
338-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, errorMessage, nil, nil, nil, context.correlationId, nil);
338+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, errorMessage, nil, nil, nil, context.correlationId, nil, YES);
339339
}
340340
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Failed to serialize app metadata item.");
341341
return NO;
@@ -382,7 +382,7 @@ - (BOOL)saveJsonObject:(MSIDJsonObject *)jsonObject
382382
{
383383
if (error)
384384
{
385-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Failed to serialize account item.", nil, nil, nil, context.correlationId, nil);
385+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Failed to serialize account item.", nil, nil, nil, context.correlationId, nil, YES);
386386
}
387387
MSID_LOG_WITH_CTX(MSIDLogLevelInfo, context, @"Failed to serialize token item.");
388388
return NO;
@@ -408,7 +408,7 @@ - (BOOL)saveAccountMetadata:(MSIDAccountMetadataCacheItem *)item
408408
if (error)
409409
{
410410
NSString *errorMessage = @"Nil metadata item is received!";
411-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, errorMessage, nil, nil, nil, context.correlationId, nil);
411+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, errorMessage, nil, nil, nil, context.correlationId, nil, NO);
412412
}
413413
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Nil metadata item is received!");
414414
return NO;
@@ -486,7 +486,7 @@ - (BOOL)removeItemsWithKey:(MSIDCacheKey *)key
486486
{
487487
if (error)
488488
{
489-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInvalidDeveloperParameter, @"Key is nil.", nil, nil, nil, context.correlationId, nil);
489+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInvalidDeveloperParameter, @"Key is nil.", nil, nil, nil, context.correlationId, nil, YES);
490490
}
491491

492492
return NO;
@@ -523,7 +523,7 @@ - (BOOL)removeItemsWithKey:(MSIDCacheKey *)key
523523
{
524524
if (error)
525525
{
526-
*error = MSIDCreateError(MSIDKeychainErrorDomain, status, @"Failed to remove items from keychain.", nil, nil, nil, context.correlationId, nil);
526+
*error = MSIDCreateError(MSIDKeychainErrorDomain, status, @"Failed to remove items from keychain.", nil, nil, nil, context.correlationId, nil, NO);
527527
}
528528
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Failed to delete keychain items (status: %d)", (int)status);
529529

@@ -565,7 +565,7 @@ - (BOOL)saveWipeInfoWithContext:(id<MSIDRequestContext>)context
565565
{
566566
if (error)
567567
{
568-
*error = MSIDCreateError(MSIDKeychainErrorDomain, status, @"Failed to save wipe token data into keychain.", nil, nil, nil, context.correlationId, nil);
568+
*error = MSIDCreateError(MSIDKeychainErrorDomain, status, @"Failed to save wipe token data into keychain.", nil, nil, nil, context.correlationId, nil, NO);
569569
}
570570
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Failed to save wipe token data into keychain (status: %d)", (int)status);
571571
return NO;
@@ -593,7 +593,7 @@ - (NSDictionary *)wipeInfo:(id<MSIDRequestContext>)context
593593
{
594594
if (error && status != errSecItemNotFound)
595595
{
596-
*error = MSIDCreateError(MSIDKeychainErrorDomain, status, @"Failed to get a wipe data from keychain.", nil, nil, nil, context.correlationId, nil);
596+
*error = MSIDCreateError(MSIDKeychainErrorDomain, status, @"Failed to get a wipe data from keychain.", nil, nil, nil, context.correlationId, nil, NO);
597597
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Failed to get a wipe data from keychain (status: %d)", (int)status);
598598
}
599599

@@ -780,7 +780,7 @@ - (NSArray *)itemsWithKey:(MSIDCacheKey *)key
780780
{
781781
if (error)
782782
{
783-
*error = MSIDCreateError(MSIDKeychainErrorDomain, status, @"Failed to get items from keychain.", nil, nil, nil, context.correlationId, nil);
783+
*error = MSIDCreateError(MSIDKeychainErrorDomain, status, @"Failed to get items from keychain.", nil, nil, nil, context.correlationId, nil, NO);
784784
}
785785
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Failed to find keychain item (status: %d)", (int)status);
786786
return nil;
@@ -808,7 +808,7 @@ - (BOOL)saveData:(NSData *)itemData
808808
{
809809
if (error)
810810
{
811-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Key is not valid. Make sure service field is not nil.", nil, nil, nil, context.correlationId, nil);
811+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Key is not valid. Make sure service field is not nil.", nil, nil, nil, context.correlationId, nil, NO);
812812
}
813813
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Set keychain item with invalid key.");
814814
return NO;
@@ -818,7 +818,7 @@ - (BOOL)saveData:(NSData *)itemData
818818
{
819819
if (error)
820820
{
821-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Failed to serialize token item.", nil, nil, nil, context.correlationId, nil);
821+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Failed to serialize token item.", nil, nil, nil, context.correlationId, nil, NO);
822822
}
823823
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Failed to serialize token item.");
824824
return NO;
@@ -869,7 +869,7 @@ - (BOOL)saveData:(NSData *)itemData
869869
{
870870
if (error)
871871
{
872-
*error = MSIDCreateError(MSIDKeychainErrorDomain, status, @"Failed to set item into keychain.", nil, nil, nil, context.correlationId, nil);
872+
*error = MSIDCreateError(MSIDKeychainErrorDomain, status, @"Failed to set item into keychain.", nil, nil, nil, context.correlationId, nil, NO);
873873
}
874874
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Failed to set item into keychain (status: %d)", (int)status);
875875
}
@@ -891,7 +891,7 @@ - (BOOL)clearWithContext:(id<MSIDRequestContext>)context
891891
{
892892
if (error)
893893
{
894-
*error = MSIDCreateError(MSIDKeychainErrorDomain, status, @"Failed to remove items from keychain.", nil, nil, nil, context.correlationId, nil);
894+
*error = MSIDCreateError(MSIDKeychainErrorDomain, status, @"Failed to remove items from keychain.", nil, nil, nil, context.correlationId, nil, NO);
895895
}
896896
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Failed to delete keychain items (status: %d)", (int)status);
897897

IdentityCore/src/cache/MSIDMacTokenCache.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
#define RETURN_ERROR_IF_CONDITION_FALSE(_cond, _code, _details) { \
3636
if (!(_cond)) { \
37-
NSError* _MSID_ERROR = MSIDCreateError(MSIDErrorDomain, _code, _details, nil, nil, nil, nil, nil); \
37+
NSError* _MSID_ERROR = MSIDCreateError(MSIDErrorDomain, _code, _details, nil, nil, nil, nil, nil, NO); \
3838
if (error) { *error = _MSID_ERROR; } \
3939
return NO; \
4040
} \
@@ -131,7 +131,7 @@ - (BOOL)deserialize:(nullable NSData*)data
131131
{
132132
if (error)
133133
{
134-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorCacheBadFormat, @"Failed to unarchive data blob from -deserialize!", nil, nil, nil, nil, nil);
134+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorCacheBadFormat, @"Failed to unarchive data blob from -deserialize!", nil, nil, nil, nil, nil, YES);
135135
}
136136
}
137137

@@ -204,7 +204,7 @@ - (MSIDCredentialCacheItem *)tokenWithKey:(MSIDCacheKey *)key
204204
{
205205
if (error)
206206
{
207-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorCacheMultipleUsers, @"The token cache store for this resource contains more than one user.", nil, nil, nil, context.correlationId, nil);
207+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorCacheMultipleUsers, @"The token cache store for this resource contains more than one user.", nil, nil, nil, context.correlationId, nil, YES);
208208
}
209209

210210
return nil;
@@ -361,7 +361,7 @@ - (BOOL)removeItemsWithKeyImpl:(MSIDCacheKey *)key
361361
{
362362
if (error)
363363
{
364-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInvalidDeveloperParameter, @"Key is nil.", nil, nil, nil, context.correlationId, nil);
364+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInvalidDeveloperParameter, @"Key is nil.", nil, nil, nil, context.correlationId, nil, YES);
365365
}
366366

367367
return NO;
@@ -421,7 +421,7 @@ - (BOOL)setItemImpl:(MSIDCredentialCacheItem *)item
421421
{
422422
if (error)
423423
{
424-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInvalidDeveloperParameter, @"Item is nil.", nil, nil, nil, context.correlationId, nil);
424+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInvalidDeveloperParameter, @"Item is nil.", nil, nil, nil, context.correlationId, nil, YES);
425425
}
426426
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Set nil item.");
427427

@@ -443,7 +443,7 @@ - (BOOL)setItemImpl:(MSIDCredentialCacheItem *)item
443443
{
444444
if (error)
445445
{
446-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Key is not valid. Make sure service is not nil.", nil, nil, nil, context.correlationId, nil);
446+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Key is not valid. Make sure service is not nil.", nil, nil, nil, context.correlationId, nil, YES);
447447
}
448448
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Set keychain item with invalid key.");
449449
return NO;

IdentityCore/src/cache/accessor/MSIDDefaultTokenCacheAccessor.m

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ - (MSIDIdToken *)getIDTokenForAccount:(MSIDAccountIdentifier *)accountIdentifier
313313
{
314314
if (error)
315315
{
316-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Wrong id token type passed.", nil, nil, nil, context.correlationId, nil);
316+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Wrong id token type passed.", nil, nil, nil, context.correlationId, nil, YES);
317317
}
318318

319319
MSID_LOG_WITH_CTX(MSIDLogLevelError, context, @"Wrong id token type passed: %@.", [MSIDCredentialTypeHelpers credentialTypeAsString:idTokenType]);
@@ -626,6 +626,16 @@ - (BOOL)validateAndRemoveRefreshableToken:(MSIDRefreshToken *)token
626626
MSID_LOG_WITH_CTX_PII(MSIDLogLevelVerbose, context, @"Found refresh token in cache and it's the latest version, removing token %@", MSID_PII_LOG_MASKABLE(tokenInCache));
627627
return [self removeToken:tokenInCache context:context error:error];
628628
}
629+
630+
// Clear RT from other accessors
631+
for (id<MSIDCacheAccessor> accessor in _otherAccessors)
632+
{
633+
if (![accessor validateAndRemoveRefreshToken:token context:context error:error])
634+
{
635+
MSID_LOG_WITH_CTX_PII(MSIDLogLevelWarning, context, @"Failed to remove RT from other accessor: %@, error %@", accessor.class, MSID_PII_LOG_MASKABLE(*error));
636+
return NO;
637+
}
638+
}
629639

630640
return YES;
631641
}
@@ -642,7 +652,7 @@ - (BOOL)checkAccountIdentifier:(NSString *)accountIdentifier
642652

643653
if (error)
644654
{
645-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInvalidInternalParameter, @"Account identifier is expected for MSDIDefaultTokenCacheFormat", nil, nil, nil, context.correlationId, nil);
655+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInvalidInternalParameter, @"Account identifier is expected for MSDIDefaultTokenCacheFormat", nil, nil, nil, context.correlationId, nil, YES);
646656
}
647657
return NO;
648658
}

IdentityCore/src/cache/accessor/MSIDLegacyTokenCacheAccessor.m

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,16 @@ - (BOOL)validateAndRemoveRefreshableToken:(MSIDBaseToken<MSIDRefreshableToken> *
443443
context:context
444444
error:error];
445445
}
446+
447+
// Clear RT from other accessors
448+
for (id<MSIDCacheAccessor> accessor in _otherAccessors)
449+
{
450+
if (![accessor validateAndRemoveRefreshToken:token context:context error:error])
451+
{
452+
MSID_LOG_WITH_CTX_PII(MSIDLogLevelWarning, context, @"Failed to remove RT from other accessor: %@, error %@", accessor.class, MSID_PII_LOG_MASKABLE(*error));
453+
return NO;
454+
}
455+
}
446456

447457
return YES;
448458
}
@@ -737,7 +747,7 @@ - (BOOL)removeTokenEnvironment:(NSString *)environment
737747
{
738748
if (error)
739749
{
740-
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Token key components not provided", nil, nil, nil, context.correlationId, nil);
750+
*error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Token key components not provided", nil, nil, nil, context.correlationId, nil, YES);
741751
}
742752

743753
return NO;

0 commit comments

Comments
 (0)