LiteDB.Identity
1.0.6
See the version list below for details.
dotnet add package LiteDB.Identity --version 1.0.6
NuGet\Install-Package LiteDB.Identity -Version 1.0.6
<PackageReference Include="LiteDB.Identity" Version="1.0.6" />
paket add LiteDB.Identity --version 1.0.6
#r "nuget: LiteDB.Identity, 1.0.6"
// Install LiteDB.Identity as a Cake Addin #addin nuget:?package=LiteDB.Identity&version=1.0.6 // Install LiteDB.Identity as a Cake Tool #tool nuget:?package=LiteDB.Identity&version=1.0.6
LiteDB.Identity
Implementation of AspNetCore.Identity for LiteDB database engine.
LiteDB.Identity will allow quickly creates users login, registration, roles, claims and tokens functionalities for web application.
How to use it ?
Please install latest version of LiteDB.Identity using NuGet:
Install-Package LiteDB.Identity
Next, in your Startup.cs file add reference to namespace:
using LiteDB.Identity.Extensions;
Add default LiteDb.Identity implementation in ConfigureServices method:
public void ConfigureServices(IServiceCollection services)
{
string connectionString = Configuration.GetConnectionString("IdentityLiteDB");
services.AddLiteDBIdentity(connectionString).AddDefaultTokenProviders().AddDefaultUI();
services.AddControllersWithViews();
services.AddRazorPages();
}
NOTE : appsettings.json should contains connection string to your LiteDB file. For more implementation details please refer to sample project.
Stores implementation
Following interfaces has been implemented on :
- UserStore :
public class UserStore<TUser, TRole, TUserRole, TUserClaim, TUserLogin, TUserToken> :
IUserLoginStore<TUser>,
IUserStore<TUser>,
IUserRoleStore<TUser>,
IUserClaimStore<TUser>,
IUserPasswordStore<TUser>,
IUserSecurityStampStore<TUser>,
IUserEmailStore<TUser>,
IUserLockoutStore<TUser>,
IUserPhoneNumberStore<TUser>,
IQueryableUserStore<TUser>,
IUserTwoFactorStore<TUser>,
IUserAuthenticationTokenStore<TUser>,
IUserAuthenticatorKeyStore<TUser>,
IUserTwoFactorRecoveryCodeStore<TUser>
- RoleStore :
public class RoleStore<TRole, TRoleClaim> : IQueryableRoleStore<TRole>,
IRoleStore<TRole>,
IRoleClaimStore<TRole>
Where to use it ?
- Great for small and medium size AspNetCore Websites,
- Quick implementation of Authentication and Authorization mechanism for WebAPIs.
References
- LiteDB - https://www.litedb.org/
- LiteDB Github - https://github.com/mbdavid/LiteDB
- AspNetCore Identity - Introduction
- AspNetCore Github - https://github.com/dotnet/aspnetcore/tree/master/src/Identity
Documentation and Wiki
in progress �
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- LiteDB (>= 5.0.15)
- Microsoft.AspNetCore.Identity (>= 2.2.0)
- Microsoft.Extensions.Identity.Stores (>= 6.0.13)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on LiteDB.Identity:
Package | Downloads |
---|---|
LiteDB.Identity.Async
Uses the LiteDB.Identity and combines it with LiteDB.async |
GitHub repositories
This package is not used by any popular GitHub repositories.