Grimoire.Consumer is a standalone .NET 10 library for consuming the Grimoire API from within your applications.
| Page | What you’ll learn |
|---|---|
| Configuration Provider | Inject Grimoire configs as IConfiguration |
| Secret Client | Fetch individual secrets programmatically |
The library provides two ways to consume Grimoire:
| Class | Use when |
|---|---|
GrimoireConfigurationClient |
You want configs (and optionally secrets) to be part of IConfiguration |
GrimoireSecretClient |
You need fine-grained control — fetch a secret at a specific point in code |
Both are in the Grimoire.Consumer namespace. The library has no dependencies on the Grimoire server-side projects.
Reference the project directly (until a NuGet package is published):
1
2
<!-- In your app's .csproj -->
<ProjectReference Include="path/to/Grimoire.Consumer/Grimoire.Consumer.csproj" />
The consumer API response shapes match Azure Key Vault and Azure App Configuration, so you can point the client library at either Grimoire or Azure without changing your application code.