Aufy is built on top of ASP.NET Core Identity framework, which is database agnostic.
Currently only Entity Framework Core implementation is available, but you can use any other database provider.
Install nuget package
Create or update your user class
Create a new user class that extends IdentityUser and implements IAufyUser interface.
If you already have a user class that extends IdentityUser, you can just implement IAufyUser interface.
Create or update you DbContext
Create a new DbContext that extends one of the IdentityDbContext classes IdentityDbContext<TUser, ...> where TUser is your user class.
DbContext should also implement IAufyDbContext<TUser> interface.
Next override OnModelCreating method and apply Aufy model configuration using builder.ApplyAufyModel() extension method.
If you already have a DbContext that extends IdentityDbContext, you can just implement IAufyDbContext<TUser> interface and apply Aufy model configuration.
Register your DbContext in DI container
Sample registration with SQLite database:
Register Aufy services in DI container
Add JWT Bearer configuration
Add authentication and authorization middleware and Aufy endpoints
Add migrations and update database
Congratulations! You have successfully installed Aufy!