Skip to content
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

Failed to read the 'publicKey' property from 'CredentialCreationOptions' #16

Closed
gerrymcjr opened this issue Nov 24, 2021 · 2 comments
Closed

Comments

@gerrymcjr
Copy link

gerrymcjr commented Nov 24, 2021

Hi damien, i am trying out the mfa implementation but i am facing this error on registration exception:TypeError: Failed to execute 'create' on 'CredentialsContainer': Failed to read the 'publicKey' property from 'CredentialCreationOptions': Failed to read the 'attestation' property from 'PublicKeyCredentialCreationOptions': The provided value '0' is not a valid enum value of type AttestationConveyancePreference. on mfa.register.js line 80

i noticed these codes on MfaFidoRegisterController var items = await _fido2Storage.GetCredentialsByUsername(identityUser.UserName); var existingKeys = new List<PublicKeyCredentialDescriptor>(); foreach (var publicKeyCredentialDescriptor in items) { existingKeys.Add(publicKeyCredentialDescriptor.Descriptor); }
does this have anything to do with the error above?

  • i am using a copy of an existing AspNetIdentity Database and added the FidoStoredCredential table
@gerrymcjr
Copy link
Author

My fault the AspNetIdentity is configured to use a normal username instead of email

@damienbod
Copy link
Owner

glad it's working

Greetings Damien

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants