1 write to Failure
Microsoft.AspNetCore.Identity (1)
PasskeyAssertionResult.cs (1)
47Failure = failure;
68 references to Failure
IdentitySample.PasskeyConformance (1)
Program.cs (1)
194return Results.BadRequest(new FailedResponse($"Assertion failed: {assertionResult.Failure.Message}"));
Microsoft.AspNetCore.Identity (2)
PasskeyAssertionResult.cs (1)
19[MemberNotNullWhen(false, nameof(Failure))]
SignInManager.cs (1)
617Logger.LogDebug(EventIds.PasskeyAssertionFailed, "Passkey assertion failed: {message}", result.Failure.Message);
Microsoft.AspNetCore.Identity.Test (65)
Passkeys\PasskeyHandlerAssertionTest.cs (65)
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 assertion state JSON had an invalid format", result.Failure.Message); 181Assert.Contains("was missing required properties including: 'challenge'", result.Failure.Message); 198Assert.StartsWith("The assertion state JSON had an invalid format", result.Failure.Message); 214Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 215Assert.Contains("was missing required properties including: 'clientDataJSON'", result.Failure.Message); 233Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 248Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 264Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 265Assert.Contains("was missing required properties including: 'authenticatorData'", result.Failure.Message); 283Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 299Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 300Assert.Contains("base64url string", result.Failure.Message); 315Assert.StartsWith("The authenticator data had an invalid byte count of 0", result.Failure.Message); 331Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 332Assert.Contains("was missing required properties including: 'signature'", result.Failure.Message); 350Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 366Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 367Assert.Contains("base64url string", result.Failure.Message); 382Assert.StartsWith("The assertion signature was invalid", result.Failure.Message); 399Assert.StartsWith("The assertion signature was invalid", result.Failure.Message); 416Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message); 431Assert.StartsWith("The authenticator response was missing a user handle", result.Failure.Message); 450Assert.StartsWith("The provided user handle", result.Failure.Message); 465Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 466Assert.Contains("was missing required properties including: 'type'", result.Failure.Message); 484Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 502Assert.StartsWith("Expected the client data JSON 'type' field to be 'webauthn.get'", result.Failure.Message); 517Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 518Assert.Contains("was missing required properties including: 'challenge'", result.Failure.Message); 536Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 551Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message); 567Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 568Assert.Contains("base64url string", result.Failure.Message); 585Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message); 600Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 601Assert.Contains("was missing required properties including: 'origin'", result.Failure.Message); 619Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 634Assert.StartsWith("The authenticator response had an invalid origin ''", result.Failure.Message); 656Assert.StartsWith($"The authenticator response had an invalid origin '{returnedOrigin}'", result.Failure.Message); 673Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 688Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message); 689Assert.Contains("was missing required properties including: 'status'", result.Failure.Message); 708Assert.StartsWith("Invalid token binding status 'unexpected-value'", result.Failure.Message); 752result.Failure.Message); 767Assert.StartsWith("The authenticator data flags did not include the 'UserPresent' flag", result.Failure.Message); 797Assert.StartsWith("The authenticator data had an invalid format", result.Failure.Message); 814Assert.StartsWith("The authenticator data included an invalid Relying Party ID hash", result.Failure.Message); 831Assert.StartsWith("The assertion signature was invalid", result.Failure.Message); 874result.Failure.Message); 917Assert.StartsWith("The credential is backed up, but the authenticator data flags did not have the 'BackupEligible' flag", result.Failure.Message); 935result.Failure.Message); 953result.Failure.Message); 970Assert.StartsWith("The provided credential does not belong to the specified user", result.Failure.Message);