Skip to content

Commit 2c8b686

Browse files
authored
Merge pull request #2379 from AzureAD/jarias/return-suberror-silent-calls
Save error received from ESTS, and use it to return to the client its description on silent broker calls [MSAL]
2 parents fc74dfe + 334b45d commit 2c8b686

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

MSAL/src/MSALError.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
NSString *MSALErrorDomain = @"MSALErrorDomain";
3131
NSString *MSALOAuthErrorKey = @"MSALOAuthErrorKey";
3232
NSString *MSALOAuthSubErrorKey = @"MSALOAuthSubErrorKey";
33+
NSString *MSALOAuthSubErrorDescriptionKey = @"MSALOAuthSubErrorDescriptionKey";
3334
NSString *MSALErrorDescriptionKey = @"MSALErrorDescriptionKey";
3435
NSString *MSALSTSErrorCodesKey = @"MSALSTSErrorCodesKey";
3536
NSString *MSALInternalErrorCodeKey = @"MSALInternalErrorCodeKey";

MSAL/src/MSALErrorConverter.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ + (void)initialize
142142
MSIDSTSErrorCodesKey : MSALSTSErrorCodesKey,
143143
MSIDOAuthErrorKey: MSALOAuthErrorKey,
144144
MSIDOAuthSubErrorKey: MSALOAuthSubErrorKey,
145+
MSIDOAuthSubErrorDescriptionKey: MSALOAuthSubErrorDescriptionKey,
145146
MSIDDeclinedScopesKey: MSALDeclinedScopesKey,
146147
MSIDGrantedScopesKey: MSALGrantedScopesKey,
147148
MSIDUserDisplayableIdkey: MSALDisplayableUserIdKey,

MSAL/src/public/MSALError.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ extern NSString *MSALOAuthErrorKey;
5656
*/
5757
extern NSString *MSALOAuthSubErrorKey;
5858

59+
/**
60+
The suberror description returned by the service.
61+
*/
62+
extern NSString *MSALOAuthSubErrorDescriptionKey;
63+
5964
/**
6065
The extended error description. Note that this string can change and should
6166
not be relied upon for any error handling logic.

0 commit comments

Comments
 (0)