dotnet-sdk/samples/AspNetCore/SecretStoreConfigurationPro...
vinayada1 39c6d8ca7d
Merge release-1.0.0 into master (#518)
* update proto files (#507)

* fix samples (#509)

* fix docs (#515)
2020-12-18 11:12:39 -08:00
..
Properties Resurrecting Secret Store Configuration Provider (#465) 2020-12-07 10:43:45 -08:00
components Merge release-1.0.0 into master (#518) 2020-12-18 11:12:39 -08:00
Program.cs Resurrecting Secret Store Configuration Provider (#465) 2020-12-07 10:43:45 -08:00
README.md Resurrecting Secret Store Configuration Provider (#465) 2020-12-07 10:43:45 -08:00
SecretStoreConfigurationProviderSample.csproj Resurrecting Secret Store Configuration Provider (#465) 2020-12-07 10:43:45 -08:00
Startup.cs Resurrecting Secret Store Configuration Provider (#465) 2020-12-07 10:43:45 -08:00
secrets.json Resurrecting Secret Store Configuration Provider (#465) 2020-12-07 10:43:45 -08:00

README.md

Dapr Secret Store Configuration Provider in ASP.NET Core

Prerequistes

Overview

This document describes how to use the Dapr Secret Store Configuration Provider sample to load Secrets into ASP.NET Core Configuration.

To load secrets into configuration call the AddDaprSecretStore extension method with the name of the Secret Store and a list of secrets to retrieve:

Using the Dapr Secret Store Configuration Provider ASP.NET Core sample

1. Use Dapr to run the application

Use Dapr to run the application:

dapr run --app-id SecretStoreConfigurationProviderSample --components-path ./components/ -- dotnet run

2. Test the application

Run the following command in other terminal:

curl http://localhost:5000/secret

The response should read: "This the way"