All Projects → Aguafrommars → Identity.redis

Aguafrommars / Identity.redis

Licence: apache-2.0
ASP.NET Identity Redis Provider

Projects that are alternatives of or similar to Identity.redis

Active Directory B2c Dotnetcore Webapp
An ASP.NET Core web application that can sign in a user using Azure AD B2C, get an access token using MSAL.NET and call an API.
Stars: ✭ 160 (+627.27%)
Mutual labels:  asp-net-core, identity
Aspnetcore2jwtauthentication
Jwt Authentication without ASP.NET Core Identity
Stars: ✭ 218 (+890.91%)
Mutual labels:  asp-net-core, identity
Security.identity
.NET DevPack Identity is a set of common implementations to help you implementing Identity, Jwt, claims validation and another facilities
Stars: ✭ 165 (+650%)
Mutual labels:  asp-net-core, identity
Aspnetcore2cookieauthentication
Cookie Authentication without ASP.NET Core Identity 3.x
Stars: ✭ 19 (-13.64%)
Mutual labels:  asp-net-core, identity
identityazuretable
This project provides a high performance cloud solution for ASP.NET Identity Core using Azure Table storage replacing the Entity Framework / MSSQL provider.
Stars: ✭ 97 (+340.91%)
Mutual labels:  identity, asp-net-core
Cierge
🗝️ Passwordless OIDC authentication done right
Stars: ✭ 1,245 (+5559.09%)
Mutual labels:  asp-net-core, identity
Aspnetcore.identity.mongo
This is a MongoDB provider for the ASP.NET Core 2 Identity framework
Stars: ✭ 179 (+713.64%)
Mutual labels:  asp-net-core, identity
Identitymanager2
Development tool for administering users and roles
Stars: ✭ 164 (+645.45%)
Mutual labels:  asp-net-core, identity
Cqrs Clean Eventual Consistency
CQRS, using Clean Architecture, multiple databases and Eventual Consistency
Stars: ✭ 247 (+1022.73%)
Mutual labels:  redis, asp-net-core
Destiny.core.flow
Destiny.Core.Flow是基于.Net Core,VUE前后分离,开发的一个开源Admin管理框架目前有以下模块:菜单管理、用户管理、角色管理、用户角色、角色权限等功能。
Stars: ✭ 184 (+736.36%)
Mutual labels:  redis, identity
Aspnetcoreid4external
external OpenID Connect Login to IdentityServer4 with AAD
Stars: ✭ 63 (+186.36%)
Mutual labels:  asp-net-core, identity
Identity.Firebase
ASP.NET Identity Firebase Provider
Stars: ✭ 23 (+4.55%)
Mutual labels:  identity, asp-net-core
Ravendb.identity
RavenDB Identity provider for ASP.NET Core. Let RavenDB manage your users and logins.
Stars: ✭ 50 (+127.27%)
Mutual labels:  asp-net-core, identity
Aspnetcore.identity.mongodbcore
A MongoDb UserStore and RoleStore adapter for Microsoft.AspNetCore.Identity 2.2. Allows you to use MongoDb instead of SQL server with Microsoft.AspNetCore.Identity 2.2. (not Identity 3.0)
Stars: ✭ 118 (+436.36%)
Mutual labels:  asp-net-core, identity
User.api
集成网关、身份认证、Token授权、微服务、.netcore等的基于CQRS的微服务开发框架示例
Stars: ✭ 109 (+395.45%)
Mutual labels:  redis, asp-net-core
CleanArchitecture-Template
This is a solution template for Clean Architecture and CQRS implementation with ASP.NET Core.
Stars: ✭ 60 (+172.73%)
Mutual labels:  identity, asp-net-core
Jpproject.identityserver4.adminui
🔧 ASP.NET Core 3 & Angular 8 Administration Panel for 💞IdentityServer4 and ASP.NET Core Identity
Stars: ✭ 717 (+3159.09%)
Mutual labels:  asp-net-core, identity
M Mall Admin
🐶 微信小程序-小商城后台(基于 Node.js、MongoDB、Redis 开发的系统...)
Stars: ✭ 895 (+3968.18%)
Mutual labels:  redis
Gush
Fast and distributed workflow runner using ActiveJob and Redis
Stars: ✭ 894 (+3963.64%)
Mutual labels:  redis
Redis Marshal
Lightweight Redis data exploration tool
Stars: ✭ 16 (-27.27%)
Mutual labels:  redis

Identity.Redis

ASP.NET Identity Redis Provider

Build status Quality Gate Status

Nuget packages

Aguacongas.Identity.Redis

Setup

You setup Redis stores using one AddRedisStores extension method

You can setup Redis stores with a redis configuration string:

services.AddIdentity<ApplicationUser, IdentityRole>()
    .AddRedisStores("localhost")
    .AddDefaultTokenProviders();

Or with an Action receiving an instance of a StackExchange.Redis.ConfigurationOptions:

services.AddIdentity<ApplicationUser, IdentityRole>()
    .AddRedisStores(options =>
    {
        options.EndPoints.Add("localhost:6379");
    })
    .AddDefaultTokenProviders();

Both methods can take a int? database parameter to specify the Redis database to use:

services.AddIdentity<ApplicationUser, IdentityRole>()
    .AddRedisStores(Configuration.GetValue<string>("ConnectionStrings:DefaultConnection"), 1)
    .AddDefaultTokenProviders();

Or, you can use AddRedisStores with a Func<IdentityProvider, StackExchange.Redis.IDatabase>:

var multiplexer = ConnectionMultiplexer.Connect("localhost");

services.AddIdentity<ApplicationUser, IdentityRole>()
    .AddRedisStores(provider => multiplexer.GetDatabase())
    .AddDefaultTokenProviders();

Logging

A logger is automaticaly injected to the underlying StackExchange.Redis.ConnectionMultiplexer by AddRedisStores methods.
This logger write traces, (LogLevel = LogLevel.Trace), to enable it add a filter to your logging configuration:

services.AddLogging(builder =>
{
    builder.AddDebug()
        .AddConsole()
        .AddFilter("Aguacongas.Identity.Redis", LogLevel.Trace);
})

Obviously, if you use AddRedisStores with a Func<IdentityProvider, StackExchange.Redis.IDatabase> the logger is not injected automaticaly.

Sample

The sample is a copy of IdentitySample.Mvc sample using a Redis database.

Tests

This library is tested using Microsoft.AspNetCore.Identity.Specification.Tests, the shared test suite for Asp.Net Identity Core store implementations.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].