-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Fido2 Assertion Fails: The operation either timed out or was not allowed #382
Comments
Does it literally have |
Hey Nico, I am not sure what that was, I re-did the test and used screenshots and updated my original comment. That does not appear to be there anymore -> still have the error. |
Can you maybe make a public repo with minimal code to reproduce this error? Also to debug this step a bit more I did the following:
This way, you can inspect the whole object in your browser console without potentially losing information through serialization. |
@TravisKool have you found a solution? Otherwise, can you try using .NET 8 and directly use the Fido2.BlazorWebAssembly project for now? |
I am using Blazor WASM .net 7 and have success with attestation / registration. I am testing using https://localhost . This issue happens on both Chrome and firefox latest versions when trying to "Login" and get the credentials..
I am successfully creating assertion options using this library, but when I call into the js method that calls navigator.credentials.get, it is failing. Prior to seeing the console exception, the authenticator pops up and seems to successfully scan my face (as it did during registration), then it pauses for 5 seconds and throws the jsexception seen below. Any thoughts?
Input captured in c# prior to the invoke. Note: I just used jsonConvert to obtain this output, so it's not base64url
![image](https://user-images.githubusercontent.com/5742961/222967389-c43e9a15-e3a0-4ef7-a9a3-c62aaea79c6d.png)
invoke which seems to be working as the windows hello shows up
![image](https://user-images.githubusercontent.com/5742961/222967692-5fc2871c-3613-40a5-899a-01afed174192.png)
The js used to invoke the navigator
![image](https://user-images.githubusercontent.com/5742961/222967652-17ac0811-81fa-42fe-9f01-fecdb03468a6.png)
the error...
Microsoft.JSInterop.JSException: The operation either timed out or was not allowed. See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client. blazor.webassembly.js:1 undefined blazor.webassembly.js:1 at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__16
1[[Fido2NetLib.AuthenticatorAssertionRawResponse, Fido2.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=null]].MoveNext()blazor.webassembly.js:1 at WebAuthn.VerifyAsync(AssertionOptions options) in C:\git\EventFinder\Access.Web\Authentication\WebAuthn.cs:line 44
blazor.webassembly.js:1 at AuthenticationAccess.LoginAsync(String email) in C:\git\EventFinder\Access.Web\Authentication\AuthenticationAccess.cs:line 111
The text was updated successfully, but these errors were encountered: