Soenneker.TrustedForm.Certificates.ClientUtil
4.0.313
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.TrustedForm.Certificates.ClientUtil --version 4.0.313
NuGet\Install-Package Soenneker.TrustedForm.Certificates.ClientUtil -Version 4.0.313
<PackageReference Include="Soenneker.TrustedForm.Certificates.ClientUtil" Version="4.0.313" />
<PackageVersion Include="Soenneker.TrustedForm.Certificates.ClientUtil" Version="4.0.313" />
<PackageReference Include="Soenneker.TrustedForm.Certificates.ClientUtil" />
paket add Soenneker.TrustedForm.Certificates.ClientUtil --version 4.0.313
#r "nuget: Soenneker.TrustedForm.Certificates.ClientUtil, 4.0.313"
#:package Soenneker.TrustedForm.Certificates.ClientUtil@4.0.313
#addin nuget:?package=Soenneker.TrustedForm.Certificates.ClientUtil&version=4.0.313
#tool nuget:?package=Soenneker.TrustedForm.Certificates.ClientUtil&version=4.0.313
Soenneker.TrustedForm.Certificates.ClientUtil
Provides lazily initialized, authenticated access to the TrustedForm Certificate API v4 client.
Installation
dotnet add package Soenneker.TrustedForm.Certificates.ClientUtil
Configuration
{
"ActiveProspect": {
"TrustedForm": {
"ApiKey": "your-api-key"
}
}
}
Supply the raw TrustedForm API key. The utility creates the required HTTP Basic credential with username API and adds Api-Version: 4.0 to requests.
Registration
using Soenneker.TrustedForm.Certificates.ClientUtil.Registrars;
services.AddTrustedFormCertificatesClientUtilAsScoped();
The scoped utility owns its generated-client wrapper. Its underlying TrustedForm HTTP provider remains singleton and is reused after the utility is disposed. Singleton utility registration is also available through AddTrustedFormCertificatesClientUtilAsSingleton().
Retain and match a certificate
using Soenneker.TrustedForm.Certificates.OpenApiClient;
using Soenneker.TrustedForm.Certificates.OpenApiClient.Item;
using Soenneker.TrustedForm.Certificates.OpenApiClient.Models;
Uri certificateUri = new(certificateUrl);
if (!certificateUri.Scheme.Equals(Uri.UriSchemeHttps, StringComparison.OrdinalIgnoreCase) ||
!certificateUri.Host.Equals("cert.trustedform.com", StringComparison.OrdinalIgnoreCase))
{
throw new InvalidOperationException("The certificate URL is not a TrustedForm certificate URL.");
}
string certificateId = certificateUri.AbsolutePath.Trim('/');
TrustedFormCertificatesOpenApiClient client =
await certificateClients.Get(cancellationToken);
var body = new WithCert_PostRequestBody
{
MatchLead = new MatchLeadParameters
{
MatchLeadEmailParameters = new MatchLeadEmailParameters
{
Email = leadEmail
}
},
Retain = new RetainParameters
{
Reference = leadId,
Vendor = leadVendor
}
};
WithCert_PostResponse? result =
await client[certificateId].PostAsync(body, cancellationToken: cancellationToken);
Validate the certificate host before extracting the ID. Sending an authenticated request to a caller-supplied host can disclose the TrustedForm API credential.
Certificate v4 operations are contracted and billed separately. Request only the retain, match_lead, insights, or verify operations your workflow intends to purchase, and inspect each operation's result rather than treating an HTTP success alone as business success.
Do not log API keys, certificate URLs, lead matching values, insights, or response bodies containing identity data.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Kiota.GenericAuthenticationProvider (>= 4.0.41)
- Soenneker.TrustedForm.Certificates.OpenApiClient (>= 4.0.92)
- Soenneker.TrustedForm.Client (>= 4.0.369)
- Soenneker.Utils.AsyncSingleton (>= 4.0.829)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.320 | 38 | 9/1/2026 |
| 4.0.319 | 32 | 9/1/2026 |
| 4.0.314 | 77 | 8/31/2026 |
| 4.0.313 | 69 | 8/31/2026 |
| 4.0.312 | 70 | 8/31/2026 |
| 4.0.311 | 69 | 8/31/2026 |
| 4.0.310 | 72 | 8/30/2026 |
| 4.0.309 | 72 | 8/30/2026 |
| 4.0.308 | 72 | 8/30/2026 |
| 4.0.307 | 81 | 8/26/2026 |
| 4.0.306 | 79 | 8/26/2026 |
| 4.0.305 | 86 | 8/22/2026 |
| 4.0.304 | 93 | 8/22/2026 |
| 4.0.303 | 163 | 8/19/2026 |
| 4.0.302 | 81 | 8/18/2026 |
| 4.0.301 | 92 | 8/13/2026 |
| 4.0.300 | 102 | 8/13/2026 |
| 4.0.299 | 92 | 8/12/2026 |
| 4.0.298 | 87 | 8/9/2026 |
| 4.0.297 | 86 | 8/9/2026 |
Update dependency Soenneker.Utils.AsyncSingleton to 4.0.829 (#599)