Skip to content

Commit e9e5616

Browse files
committed
Add new psso error
1 parent 1832c6c commit e9e5616

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

IdentityCore/src/MSIDError.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,15 @@ typedef NS_ENUM(NSInteger, MSIDErrorCode)
345345

346346
// Error thrown when psso save login config operation fails
347347
MSIDErrorPSSOSaveLoginConfigFailure = -51842,
348+
349+
// Error is thrown when passkey accessed without biometric when h/w biometric policy configured
350+
MSIDErrorPSSOPasskeyLAError = -51843,
351+
352+
// Error is thrown when PSSO user registration attempted with no biometrics configured and sekey biometric policy is configured
353+
MSIDErrorPSSOBiometricsNotEnrolled = -51844,
354+
355+
// Error is thrown when PSSO user registration attempted with no biometrics available and sekey biometric policy is configured
356+
MSIDErrorPSSOBiometricsNotAvailable = -51845,
348357

349358
// Throttling errors
350359
MSIDErrorThrottleCacheNoRecord = -51900,

IdentityCore/src/MSIDError.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ MSIDErrorCode MSIDErrorCodeForOAuthErrorWithSubErrorCode(NSString *oauthError, M
210210
@(MSIDErrorPSSOBiometricPolicyMismatch),
211211
@(MSIDErrorPSSOInvalidPasskeyExtension),
212212
@(MSIDErrorPSSOSaveLoginConfigFailure),
213+
@(MSIDErrorPSSOPasskeyLAError),
214+
@(MSIDErrorPSSOBiometricsNotEnrolled),
215+
@(MSIDErrorPSSOBiometricsNotAvailable),
213216
],
214217
MSIDOAuthErrorDomain : @[// Server Errors
215218
@(MSIDErrorServerOauth),
@@ -427,6 +430,12 @@ void MSIDFillAndLogError(NSError **error, MSIDErrorCode errorCode, NSString *err
427430
return @"MSIDErrorPSSOInvalidPasskeyExtension";
428431
case MSIDErrorPSSOSaveLoginConfigFailure:
429432
return @"MSIDErrorPSSOSaveLoginConfigFailure";
433+
case MSIDErrorPSSOPasskeyLAError:
434+
return @"MSIDErrorPSSOPasskeyLAError";
435+
case MSIDErrorPSSOBiometricsNotEnrolled:
436+
return @"MSIDErrorPSSOBiometricsNotEnrolled";
437+
case MSIDErrorPSSOBiometricsNotAvailable:
438+
return @"MSIDErrorPSSOBiometricsNotAvailable";
430439
// Throttling errors
431440
case MSIDErrorThrottleCacheNoRecord:
432441
return @"MSIDErrorThrottleCacheNoRecord";

0 commit comments

Comments
 (0)