Table of Contents

Class DataProtectionMongoRegistration

Namespace
Tharga.Team.MongoDB
Assembly
Tharga.Team.MongoDB.dll

Keeping the Data Protection key ring in MongoDB.

public static class DataProtectionMongoRegistration
Inheritance
DataProtectionMongoRegistration
Inherited Members

Methods

PersistKeysToThargaMongo(IDataProtectionBuilder)

Keeps the Data Protection key ring in MongoDB, in the database the toolkit already uses, so every instance shares it and it survives a restart.

public static IDataProtectionBuilder PersistKeysToThargaMongo(this IDataProtectionBuilder builder)

Parameters

builder IDataProtectionBuilder

Returns

IDataProtectionBuilder

Remarks

Needed wherever keys are protected on more than one instance, or on a host whose file system does not survive a restart, such as a container. Set an application name too, with SetApplicationName, so instances of the same site agree on which keys are theirs.