Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Last active April 5, 2018 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcomartin/d640fef44c86a8761f4fb2fe3bcf8f79 to your computer and use it in GitHub Desktop.
Save dcomartin/d640fef44c86a8761f4fb2fe3bcf8f79 to your computer and use it in GitHub Desktop.
public void ConfigureServices(IServiceCollection services)
{
services.AddDataProtection()
.PersistKeysToAwsS3(new AmazonS3Client(), new S3XmlRepositoryConfig("bucketName")
{
KeyPrefix = "DataProtectionKeys/",
});
services.AddMvc();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment