1 write to Failure
Microsoft.AspNetCore.Identity (1)
PasskeyAssertionResult.cs (1)
47Failure = failure;
75 references to Failure
IdentitySample.PasskeyConformance (1)
Program.cs (1)
160return Results.BadRequest(new FailedResponse($"Assertion failed: {assertionResult.Failure.Message}"));
Microsoft.AspNetCore.Identity (2)
PasskeyAssertionResult.cs (1)
19[MemberNotNullWhen(false, nameof(Failure))]
SignInManager.cs (1)
523Logger.LogDebug(EventIds.PasskeyAssertionFailed, "Passkey assertion failed: {message}", result.Failure.Message);
Microsoft.AspNetCore.Identity.Test (72)
Passkeys\DefaultPasskeyHandlerAssertionTest.cs (72)
45Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 46Assert.Contains("was missing required properties including: 'id'", result.Failure.Message); 64Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 80Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 81Assert.Contains("base64url string", result.Failure.Message); 96Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 97Assert.Contains("was missing required properties including: 'type'", result.Failure.Message); 115Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 130Assert.StartsWith("Expected credential type 'public-key', got 'unexpected-value'", result.Failure.Message); 145Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 146Assert.Contains("was missing required properties including: 'response'", result.Failure.Message); 164Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 180Assert.StartsWith("The original passkey request options had an invalid format", result.Failure.Message); 181Assert.Contains("was missing required properties including: 'challenge'", result.Failure.Message); 197Assert.StartsWith("The original passkey request options had an invalid format", result.Failure.Message); 198Assert.Contains("base64url string", result.Failure.Message); 216Assert.StartsWith("The original passkey request options had an invalid format", result.Failure.Message); 232Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 233Assert.Contains("was missing required properties including: 'clientDataJSON'", result.Failure.Message); 251Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 266Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 282Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 283Assert.Contains("was missing required properties including: 'authenticatorData'", result.Failure.Message); 301Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 317Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 318Assert.Contains("base64url string", result.Failure.Message); 333Assert.StartsWith("The authenticator data had an invalid byte count of 0", result.Failure.Message); 349Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 350Assert.Contains("was missing required properties including: 'signature'", result.Failure.Message); 368Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 384Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 385Assert.Contains("base64url string", result.Failure.Message); 400Assert.StartsWith("The assertion signature was invalid", result.Failure.Message); 417Assert.StartsWith("The assertion signature was invalid", result.Failure.Message); 434Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 449Assert.StartsWith("The authenticator response was missing a user handle", result.Failure.Message); 468Assert.StartsWith("The provided user handle", result.Failure.Message); 483Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 484Assert.Contains("was missing required properties including: 'type'", result.Failure.Message); 502Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 520Assert.StartsWith("Expected the client data JSON 'type' field to be 'webauthn.get'", result.Failure.Message); 535Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 536Assert.Contains("was missing required properties including: 'challenge'", result.Failure.Message); 554Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 569Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message); 585Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 586Assert.Contains("base64url string", result.Failure.Message); 607Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message); 622Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 623Assert.Contains("was missing required properties including: 'origin'", result.Failure.Message); 641Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 656Assert.StartsWith("The authenticator response had an invalid origin ''", result.Failure.Message); 678Assert.StartsWith($"The authenticator response had an invalid origin '{returnedOrigin}'", result.Failure.Message); 695Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 710Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 711Assert.Contains("was missing required properties including: 'status'", result.Failure.Message); 730Assert.StartsWith("Invalid token binding status 'unexpected-value'", result.Failure.Message); 783result.Failure.Message); 798Assert.StartsWith("The authenticator data flags did not include the 'UserPresent' flag", result.Failure.Message); 828Assert.StartsWith("The authenticator data had an invalid format", result.Failure.Message); 845Assert.StartsWith("The authenticator data included an invalid Relying Party ID hash", result.Failure.Message); 862Assert.StartsWith("The assertion signature was invalid", result.Failure.Message); 905result.Failure.Message); 948Assert.StartsWith("The credential is backed up, but the authenticator data flags did not have the 'BackupEligible' flag", result.Failure.Message); 993result.Failure.Message); 1016result.Failure.Message); 1063result.Failure.Message); 1086result.Failure.Message); 1104result.Failure.Message); 1122result.Failure.Message); 1138result.Failure.Message); 1169Assert.StartsWith("The provided credential does not belong to the specified user", result.Failure.Message);