Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Data Protection APIs for persisting keys to MongoDB.

License

Notifications You must be signed in to change notification settings

360Recognition/Terryberry.DataProtection.MongoDb

Repository files navigation

NOTICE

This project is no longer maintained and may be deleted at a later date. Note to Terryberry developers, functionallity here has been ported to Terryberry.WebServices.ApiBase.

Terryberry.DataProtection.MongoDb

Data Protection APIs for persisting keys to MongoDB.

Basic Usage

public void ConfigureServices(IServiceCollection services)
{
    services.AddDataProtection()
            .SetApplicationName("MyApplication")
            .PersistKeysToMongoDb("mongodb://localhost:27017/", "KeyDatabase", "KeyCollection")
            .AddKeyCleanup();
}