Soenneker.Persona.HttpClients
11.0.201
Prefix Reserved
dotnet add package Soenneker.Persona.HttpClients --version 11.0.201
NuGet\Install-Package Soenneker.Persona.HttpClients -Version 11.0.201
<PackageReference Include="Soenneker.Persona.HttpClients" Version="11.0.201" />
<PackageVersion Include="Soenneker.Persona.HttpClients" Version="11.0.201" />
<PackageReference Include="Soenneker.Persona.HttpClients" />
paket add Soenneker.Persona.HttpClients --version 11.0.201
#r "nuget: Soenneker.Persona.HttpClients, 11.0.201"
#:package Soenneker.Persona.HttpClients@11.0.201
#addin nuget:?package=Soenneker.Persona.HttpClients&version=11.0.201
#tool nuget:?package=Soenneker.Persona.HttpClients&version=11.0.201
Soenneker.Persona.HttpClients
Provides a cached HttpClient configured for Persona's identity API, including bearer authentication and API-version pinning.
Installation
dotnet add package Soenneker.Persona.HttpClients
Configuration
{
"Persona": {
"ApiKey": "your-api-key"
}
}
The provider sends Persona-Version: 2025-12-08, matching the newest version in the packaged schema. Persona:ApiVersion, Persona:ClientBaseUrl, Persona:AuthHeaderName, and Persona:AuthHeaderValueTemplate can override their defaults.
Usage
using Soenneker.Persona.HttpClients.Abstract;
using Soenneker.Persona.HttpClients.Registrars;
services.AddPersonaOpenApiHttpClientAsSingleton();
IPersonaOpenApiHttpClient provider = serviceProvider
.GetRequiredService<IPersonaOpenApiHttpClient>();
HttpClient client = await provider.Get(cancellationToken);
HttpResponseMessage response = await client.GetAsync("accounts", cancellationToken);
response.EnsureSuccessStatusCode();
The provider owns its cached client. Disposing the provider removes and disposes that client. Scoped registration gives each provider instance its own cached client.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Configuration (>= 11.0.921)
- Soenneker.Utils.HttpClientCache (>= 11.0.2188)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Persona.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.Persona.OpenApiClientUtil
Provides a configured Persona identity API client and reuses it for the lifetime of the registered service. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.201 | 68 | 12/3/2026 |
| 11.0.200 | 62 | 12/3/2026 |
| 11.0.199 | 68 | 12/3/2026 |
| 11.0.198 | 62 | 12/3/2026 |
| 11.0.197 | 62 | 12/3/2026 |
| 11.0.196 | 59 | 12/2/2026 |
| 11.0.195 | 61 | 12/2/2026 |
| 11.0.194 | 67 | 12/2/2026 |
| 11.0.191 | 86 | 12/2/2026 |
| 11.0.190 | 64 | 12/2/2026 |
| 11.0.189 | 68 | 12/2/2026 |
| 11.0.188 | 91 | 12/1/2026 |
| 11.0.187 | 86 | 12/1/2026 |
| 11.0.186 | 114 | 12/1/2026 |
| 11.0.185 | 101 | 12/1/2026 |
| 11.0.184 | 107 | 11/30/2026 |
| 11.0.183 | 92 | 11/30/2026 |
| 11.0.182 | 115 | 11/30/2026 |
| 11.0.181 | 108 | 11/29/2026 |
| 11.0.180 | 96 | 11/29/2026 |
Updated Multiple NuGet packages