Skip to content

Doppler Secrets configuration provider for Microsoft.Extensions.Configuration

License

Notifications You must be signed in to change notification settings

anktsrkr/DopplerConfigurationProvider

Repository files navigation

Doppler Secrets configuration provider for Microsoft.Extensions.Configuration

The Doppler.Extensions.Configuration package allows storing configuration values using Doppler Secrets.

Getting started

Install the package

Install the package with Nuget:

dotnet add package Doppler.Extensions.Configuration

Prerequisites

You need a Doppler account to use this package.

Examples

To load initialize configuration from Doppler secrets call the AddDoppler on ConfigurationBuilder:

ConfigurationBuilder builder = new ConfigurationBuilder();
builder.AddDoppler(builder.Configuration.GetValue<string>("Doppler:ServiceToken"))

IConfiguration configuration = builder.Build();
Console.WriteLine(configuration["MySecret"]);

About

Doppler Secrets configuration provider for Microsoft.Extensions.Configuration

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages