Soenneker.Kiota.GenericAuthenticationProvider
11.0.61
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Kiota.GenericAuthenticationProvider --version 11.0.61
NuGet\Install-Package Soenneker.Kiota.GenericAuthenticationProvider -Version 11.0.61
<PackageReference Include="Soenneker.Kiota.GenericAuthenticationProvider" Version="11.0.61" />
<PackageVersion Include="Soenneker.Kiota.GenericAuthenticationProvider" Version="11.0.61" />
<PackageReference Include="Soenneker.Kiota.GenericAuthenticationProvider" />
paket add Soenneker.Kiota.GenericAuthenticationProvider --version 11.0.61
#r "nuget: Soenneker.Kiota.GenericAuthenticationProvider, 11.0.61"
#:package Soenneker.Kiota.GenericAuthenticationProvider@11.0.61
#addin nuget:?package=Soenneker.Kiota.GenericAuthenticationProvider&version=11.0.61
#tool nuget:?package=Soenneker.Kiota.GenericAuthenticationProvider&version=11.0.61
Soenneker.Kiota.GenericAuthenticationProvider
A Kiota authentication provider for custom credential headers, optional companion headers, and host restrictions.
Install
dotnet add package Soenneker.Kiota.GenericAuthenticationProvider
Usage
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.Kiota.GenericAuthenticationProvider;
var authentication = new GenericAuthenticationProvider(
headerName: "X-Api-Key",
headerValue: apiKey,
additionalHeaders: new Dictionary<string, string>
{
["Api-Version"] = "2026-01-01"
},
allowedHosts: new[] { "api.example.com" });
var adapter = new HttpClientRequestAdapter(
authentication,
httpClient: httpClient);
Host names do not include a scheme or path. On an allowed HTTPS request, the provider replaces the configured credential header and companion headers with the configured values. On an off-host request, it removes those headers so a reused RequestInformation or Kiota raw-URL call cannot carry credentials elsewhere.
Always supply allowedHosts when the API host is known. For compatibility, omitting it pins the provider to the first HTTPS host it authenticates; later hosts receive no credential headers. An explicit allowlist is safer because it also protects the first request.
Plain HTTP is rejected by default. Set allowInsecureHttp: true only for a controlled local endpoint. The provider snapshots additionalHeaders during construction, so later dictionary changes do not alter live authentication behavior.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Microsoft.Kiota.Abstractions (>= 2.1.6)
NuGet packages (37)
Showing the top 5 NuGet packages that depend on Soenneker.Kiota.GenericAuthenticationProvider:
| Package | Downloads |
|---|---|
|
Soenneker.TrustedForm.Certificates.ClientUtil
Provides lazily initialized, authenticated access to the TrustedForm Certificate API v4 client. |
|
|
Soenneker.Calendly.OpenApiClientUtil
A thread-safe utility for obtaining Calendly's OpenApiClient singleton. |
|
|
Soenneker.Asana.OpenApiClientUtil
A thread-safe utility for obtaining Asana's OpenApiClient singleton. |
|
|
Soenneker.Bandwidth.OpenApiClientUtil
A thread-safe utility for obtaining Bandwidth's OpenApiClient singleton. |
|
|
Soenneker.Twilio.OpenApiClientUtil
Provides an authenticated, cached Twilio OpenAPI client |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.62 | 1,390 | 11/17/2026 |
| 11.0.61 | 3,567 | 11/11/2026 |
| 11.0.60 | 3,339 | 11/3/2026 |
| 11.0.59 | 5,150 | 10/27/2026 |
| 11.0.58 | 1,216 | 10/26/2026 |
| 4.0.56 | 5,460 | 10/14/2026 |
| 4.0.55 | 562 | 10/14/2026 |
| 4.0.50 | 684 | 10/12/2026 |
| 4.0.49 | 1,081 | 10/12/2026 |
| 4.0.48 | 1,557 | 10/11/2026 |
| 4.0.47 | 5,953 | 9/24/2026 |
| 4.0.46 | 2,823 | 9/15/2026 |
| 4.0.45 | 2,714 | 9/12/2026 |
| 4.0.44 | 2,005 | 9/8/2026 |
| 4.0.43 | 2,826 | 9/4/2026 |
| 4.0.42 | 1,961 | 9/3/2026 |
| 4.0.41 | 3,192 | 8/30/2026 |
| 4.0.40 | 4,080 | 8/29/2026 |
| 4.0.39 | 149 | 8/29/2026 |
| 4.0.38 | 44,416 | 7/28/2026 |
Upgrade .NET 11 release candidates to stable