WebAuthn, Fido2 in ASP. Net

Palmer, Neil 21 Reputation points
2022-11-07T19:57:02.53+00:00

Can anyone point me to documentation and or code examples for WebAuthn and Fido2 for Multi Factor authentication? Coding in ASP.Net C#

Thanks

Developer technologies | Visual Studio | Other
Developer technologies | ASP.NET | Other
0 comments No comments
{count} votes

Accepted answer
  1. Lan Huang-MSFT 30,186 Reputation points Microsoft External Staff
    2022-11-08T02:52:00.567+00:00

    Hi @Palmer, Neil ,
    Hope the following documents can help you:
    A working implementation library + demo for FIDO2 and WebAuthn using .NET
    https://github.com/passwordless-lib/fido2-net-lib
    ASP.NET CORE IDENTITY WITH FIDO2 WEBAUTHN MFA
    https://damienbod.com/2019/08/06/asp-net-core-identity-with-fido2-webauthn-mfa/
    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. sufc 0 Reputation points
    2025-03-02T19:15:47.7866667+00:00

    As already answered, there are several open source and commercial libraries available.

    However, depending on your use case you can craft your own solution by implementing the Web Authentication API yourself using navigator.credentials.create() and navigator.credentials.get().

    Basically you use these methods to Create a public key credential and then Retrieve a public key credential.

    For an example of how this is achieved, take a look at WebAuthn for nginx using auth_request. Discussions are enabled on the repo, so feel free to ask questions there.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.