-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix project - integrate fixed MSID #283
Changes from 3 commits
af401a5
cbfca8b
8309c94
f07927f
27ff94c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,29 +44,35 @@ + (void)initialize | |
|
||
s_errorCodeMapping = @{ | ||
MSIDErrorDomain:@{ | ||
// General | ||
@(MSIDErrorInternal) : @(MSALErrorInternal), | ||
@(MSIDErrorInvalidInternalParameter) : @(MSALErrorInternal), | ||
@(MSIDErrorInvalidDeveloperParameter) :@(MSALErrorInvalidParameter), | ||
@(MSIDErrorAmbiguousAuthority) : @(MSALErrorAmbiguousAuthority), | ||
@(MSIDErrorInteractionRequired) : @(MSALErrorInteractionRequired), | ||
@(MSIDErrorUnsupportedFunctionality): @(MSALErrorInternal), | ||
// Cache | ||
@(MSIDErrorCacheMultipleUsers) : @(MSALErrorInternal), | ||
@(MSIDErrorTokenCacheItemFailure) : @(MSALErrorTokenCacheItemFailure), | ||
@(MSIDErrorWrapperCacheFailure) : @(MSALErrorWrapperCacheFailure), | ||
@(MSIDErrorCacheBadFormat) : @(MSALErrorWrapperCacheFailure), | ||
@(MSIDErrorCacheVersionMismatch) : @(MSALErrorInternal), | ||
@(MSIDErrorServerInvalidResponse) : @(MSALErrorInvalidResponse), | ||
@(MSIDErrorDeveloperAuthorityValidation) : @(MSALErrorFailedAuthorityValidation), | ||
@(MSIDErrorServerRefreshTokenRejected) : @(MSALErrorAuthorizationFailed), | ||
@(MSIDErrorServerOauth) : @(MSALErrorAuthorizationFailed), | ||
@(MSIDErrorUnsupportedFunctionality): @(MSALErrorInternal) | ||
// Authority Validation | ||
@(MSIDErrorAuthorityValidation) : @(MSALErrorFailedAuthorityValidation), | ||
// Interactive flow | ||
@(MSIDErrorAuthorizationFailed) : @(MSALErrorAuthorizationFailed), | ||
@(MSIDErrorUserCancel) : @(MSALErrorUserCanceled), | ||
@(MSIDErrorSessionCanceledProgramatically) : @(MSALErrorSessionCanceled), | ||
@(MSIDErrorInteractiveSessionStartFailure) : @(MSALErrorInternal), | ||
@(MSIDErrorInteractiveSessionAlreadyRunning) : @(MSALErrorInteractiveSessionAlreadyRunning), | ||
@(MSIDErrorNoMainViewController) : @(MSALErrorNoViewController), | ||
}, | ||
MSIDOAuthErrorDomain:@{ | ||
@(MSIDErrorInvalidRequest) :@(MSALErrorInvalidRequest), | ||
@(MSIDErrorInvalidClient) : @(MSALErrorInvalidClient), | ||
@(MSIDErrorInvalidGrant) : @(MSALErrorInvalidParameter), | ||
@(MSIDErrorInvalidParameter) : @(MSALErrorInvalidParameter), | ||
@(MSIDErrorServerRefreshTokenRejected) : @(MSALErrorAuthorizationFailed), | ||
@(MSIDErrorInteractionRequired) : @(MSALErrorInteractionRequired), | ||
@(MSIDErrorServerOauth) : @(MSALErrorAuthorizationFailed), | ||
@(MSIDErrorServerInvalidResponse) : @(MSALErrorInvalidResponse), | ||
@(MSIDErrorServerRefreshTokenRejected) : @(MSALErrorAuthorizationFailed), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a better corresponding error code than MSALErrorAuthorizationFailed (which sounds more like interactive error)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added corresponding error for msal. also filed an issue to improve refactoring #285 |
||
@(MSIDErrorServerInvalidRequest) :@(MSALErrorInvalidRequest), | ||
@(MSIDErrorServerInvalidClient) : @(MSALErrorInvalidClient), | ||
@(MSIDErrorServerInvalidGrant) : @(MSALErrorInvalidGrant), | ||
@(MSIDErrorServerInvalidScope) : @(MSALErrorInvalidScope), | ||
@(MSIDErrorServerInvalidState) : @(MSALErrorInvalidState), | ||
@(MSIDErrorServerNonHttpsRedirect) : @(MSALErrorInternal) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't we have a corresponding MSAL error? If not, let's add it, as it sounds important to call out this specific reason. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added corresponding error for msal. also filed an issue to improve refactoring #285 |
||
} | ||
}; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: MSIDErrorSessionCanceledProgramatically should have double "m"