Skip to content

Repository files navigation

Fido2 EntityFramework.Store

A thin wrapper around Fido2 adding store capabilities to it.

Purpouse

Provide a better integration between Fido2 library and ASP.NET Identity

How to implement

  1. Add at Program.cs
builder.Services.AddFido2Context<ApplicationDbContext>();
  1. Change ApplicationDbContext
usingNetDevPack.Fido2.EntityFramework.Store.Model;usingNetDevPack.Fido2.EntityFramework.Store.Store;publicclassApplicationDbContext:IdentityDbContext,IFido2Context{publicApplicationDbContext(DbContextOptions<ApplicationDbContext>options):base(options){}publicDbSet<StoredCredential>Fido2StoredCredential{get;set;}}
  1. Now you can inject IFido2Store to save and recover StoredCredential

Demo

Check demo at Source Code.

About

A thin wrapper for fido2-net-lib to improve integration with ASP.NET Identity

Resources

Code of conduct

Contributing

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages