Skip to content

WuShiMuPackages/DataProtectionPostgresPersist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DataProtectionPostgresPersist

This project is a sava DataProtection Persist Key in postgres .

Install-Package DataProtectionPostgresPersist -Version 1.0.3

     public void ConfigureServices(IServiceCollection services)
      {
          services.Configure<CookiePolicyOptions>(options =>
          {
              options.CheckConsentNeeded = context => true;
              options.MinimumSameSitePolicy = SameSiteMode.None;
          });
          //add Postgres DataProtection
          services.AddDataProtection().PersistKeysToPostgres(Configuration.GetConnectionString("Postgre"));

          services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
      }

About

PersistKeysToPostgres

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published