Class ProtectedDataMessageStoreExtensions
- Namespace
- Microsoft.Extensions.DependencyInjection
- Assembly
- Fdyay.IdentityServer.AspNetCore.dll
Registers the data-protected message stores, for a host running more than one instance.
public static class ProtectedDataMessageStoreExtensions
- Inheritance
-
ProtectedDataMessageStoreExtensions
- Inherited Members
Methods
AddProtectedDataMessageStores(IIdentityServerBuilder)
Carries the error page's and the consent page's messages in their ids, protected, instead of in this process's memory.
public static IIdentityServerBuilder AddProtectedDataMessageStores(this IIdentityServerBuilder builder)
Parameters
builderIIdentityServerBuilder
Returns
Remarks
Duende's default, opt-in here: behind a load balancer an error or consent message written on one instance is read on
another, which the in-memory default cannot do. Every instance must share the data protection key ring, as for the
session cookie; each message keeps the lifetime UserInteractionOptions gives it.