Additions and extensions for .NET web-authentication-cookies (ASP.NET Core).
Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions.SessionStore is of type Microsoft.AspNetCore.Authentication.Cookies.ITicketStore. You can implement your own.
This library contains 2:
The ITicketStore is configurable in appsettings.json.
The DistributedCacheTicketStore uses DataProtection. In a load-balanced environment the DataProtection also have to be configured/setup to support load-balancing.
- MemoryCacheTicketStore
- Redis-DistributedCacheTicketStore - you need to setup Redis, see below
- Sqlite-DistributedCacheTicketStore
- SqlServer-DistributedCacheTicketStore
Setup Redis locally with Docker:
docker run --rm -it -p 6379:6379 redis