dotnet-sdk/examples/AspNetCore/SecretStoreConfigurationPro...
Whit Waldo 1b5f10e00b
Adds durabletask fork (#1544)
Supports integrating our fork at dapr/durabletask-dotnet from microsoft/durabletask-dotnet with the cancellation token patch
2025-05-23 00:08:18 -05:00
..
Properties SDK Docs (#572) 2021-02-16 22:15:33 -08:00
components SDK Docs (#572) 2021-02-16 22:15:33 -08:00
Program.cs Remove unused using statements. (#1313) 2024-10-24 17:00:09 -05:00
README.md Adds durabletask fork (#1544) 2025-05-23 00:08:18 -05:00
SecretStoreConfigurationProviderSample.csproj Adds durabletask fork (#1544) 2025-05-23 00:08:18 -05:00
Startup.cs replaced license headers (#802) 2021-12-10 13:39:06 -08:00
secrets.json SDK Docs (#572) 2021-02-16 22:15:33 -08:00

README.md

Dapr secret store configuration provider in ASP.NET Core

Prerequisites

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 descriptors or related metadata.

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

1. Use Dapr to run the application

Use Dapr to run the application:

dapr run --app-id SecretStoreConfigurationProviderSample --resources-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"