Skip to content

Commit

Permalink
Add new error mapping for http error code 403 and 404
Browse files Browse the repository at this point in the history
  • Loading branch information
Veena11 committed Dec 18, 2024
1 parent 1d64572 commit bc907c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion MSAL/src/MSALErrorConverter.m
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ + (void)initialize
@(MSIDErrorServerError) : @(MSALErrorServerError),
@(MSIDErrorServerInvalidState) : @(MSALInternalErrorInvalidState),
@(MSIDErrorServerProtectionPoliciesRequired) : @(MSALErrorServerProtectionPoliciesRequired),
@(MSIDErrorServerUnhandledResponse) : @(MSALInternalErrorUnhandledResponse)
@(MSIDErrorServerUnhandledResponse) : @(MSALInternalErrorUnhandledResponse),
@(MSIDErrorUnExpectedHttpResponse) : @(MSALInternalErrorUnExpectedHttpResponse)
}
};

Expand Down
6 changes: 6 additions & 0 deletions MSAL/src/public/MSALError.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ typedef NS_ENUM(NSInteger, MSALInternalError)
*/
MSALInternalErrorUnexpected = -42008,

/**
Un expected http response with status code 403 or 404
*/
MSALInternalErrorUnExpectedHttpResponse = -42009,

/**
The passed in authority URL does not pass validation.
If you're trying to use B2C, you must disable authority validation by
Expand Down Expand Up @@ -525,4 +530,5 @@ typedef NS_ENUM(NSInteger, MSALInternalError)
JIT - Error Handling config invalid or not found
*/
MSALErrorJITErrorHandlingConfigNotFound = -42738,

};

0 comments on commit bc907c8

Please sign in to comment.