PasskeyExceptionExtensions.cs (37)
13=> new($"Expected credential type '{expectedType}', got '{actualType}'.");
16=> new($"Expected the client data JSON 'type' field to be '{expectedType}', got '{actualType}'.");
19=> new("The authenticator response challenge does not match original challenge.");
22=> new($"The authenticator response had an invalid origin '{origin}'.");
25=> new("The authenticator data included an invalid Relying Party ID hash.");
28=> new("The authenticator data flags did not include the 'UserPresent' flag.");
31=> new("User verification is required, but the authenticator data flags did not have the 'UserVerified' flag.");
34=> new("The credential is backed up, but the authenticator data flags did not have the 'BackupEligible' flag.");
37=> new("Credential backup eligibility is disallowed, but the credential was eligible for backup.");
40=> new("Credential backup eligibility is required, but the credential was not eligible for backup.");
43=> new("Credential backup is disallowed, but the credential was backed up.");
46=> new("Credential backup is required, but the credential was not backed up.");
49=> new("No attested credential data was provided by the authenticator.");
52=> new("The credential public key algorithm does not match any of the supported algorithms.");
55=> new("The attestation statement was not valid.");
58=> new($"Expected the credential ID to have a length between 1 and 1023 bytes, but got {length}.");
61=> new("The provided credential ID does not match the credential ID in the attested credential data.");
64=> new("The credential is already registered for a user.");
67=> new("The provided credential ID was not in the list of allowed credentials.");
70=> new("The provided credential does not belong to the specified user.");
73=> new($"The provided user handle '{providedUserHandle}' does not match the credential's user handle '{credentialUserHandle}'.");
76=> new("The authenticator response was missing a user handle.");
79=> new("The stored credential is eligible for backup, but the provided credential was unexpectedly ineligible for backup.");
82=> new("The stored credential is ineligible for backup, but the provided credential was unexpectedly eligible for backup.");
85=> new("The assertion signature was invalid.");
88=> new("The authenticator's signature counter is unexpectedly less than or equal to the stored signature counter.");
97=> new("The attestation object did not include an attestation statement format.");
100=> new("The attestation object did not include an attestation statement.");
103=> new("The attestation object did not include authenticator data.");
106=> new($"The authenticator data had an invalid byte count of {length}.");
112=> new($"The attested credential data had an invalid byte count of {length}.");
118=> new($"Invalid token binding status '{tokenBindingStatus}'.");
121=> new("The attestation credential JSON was unexpectedly null.");
127=> new("The original passkey creation options were unexpectedly null.");
133=> new("The assertion credential JSON was unexpectedly null.");
139=> new("The original passkey request options were unexpectedly null.");
145=> new("The client data JSON was unexpectedly null.");