Verifiabl.Issuer.Extensions.DependencyInjection 1.0.0

Prefix Reserved
dotnet add package Verifiabl.Issuer.Extensions.DependencyInjection --version 1.0.0
                    
NuGet\Install-Package Verifiabl.Issuer.Extensions.DependencyInjection -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Verifiabl.Issuer.Extensions.DependencyInjection" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Verifiabl.Issuer.Extensions.DependencyInjection" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Verifiabl.Issuer.Extensions.DependencyInjection" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Verifiabl.Issuer.Extensions.DependencyInjection --version 1.0.0
                    
#r "nuget: Verifiabl.Issuer.Extensions.DependencyInjection, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Verifiabl.Issuer.Extensions.DependencyInjection@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Verifiabl.Issuer.Extensions.DependencyInjection&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Verifiabl.Issuer.Extensions.DependencyInjection&version=1.0.0
                    
Install as a Cake Tool

Verifiabl.Issuer.Extensions.DependencyInjection

Dependency-injection wiring for the Verifiabl .NET SDK. Registers IVerifiablClient and connects it to IHttpClientFactory, so the core Verifiabl.Issuer package stays dependency-light.

dotnet add package Verifiabl.Issuer.Extensions.DependencyInjection
using Microsoft.Extensions.DependencyInjection;
using Verifiabl;
using Verifiabl.Client;
using Verifiabl.Extensions.DependencyInjection;

builder.Services.AddVerifiablClient(options =>
{
    options.Environment = VerifiablEnvironment.Sandbox;
    options.Auth = VerifiablAuth.ClientCredentials(clientId, clientSecret);
});

Then inject IVerifiablClient:

public sealed class PayrollService(IVerifiablClient verifiabl)
{
    public Task<RegisterNonPiiResponse> RegisterAsync(RegisterNonPiiRequest request) =>
        verifiabl.RegisterNonPiiAsync(request);
}

Use the Action<IServiceProvider, VerifiablClientOptions> overload when the credentials come from another registered service.

The client is registered as a singleton: it caches OAuth access tokens, so a scoped or transient lifetime would fetch a fresh token on every resolve. Its HttpClient comes from the named factory client Verifiabl (VerifiablServiceCollectionExtensions.HttpClientName), which you can further configure with AddHttpClient("Verifiabl"). Setting options.HttpClient yourself takes precedence.

Registration uses TryAdd semantics: the first AddVerifiablClient call wins and later calls are silently ignored, so register the client once at composition-root level rather than from multiple modules.

The extension method lives in Verifiabl.Extensions.DependencyInjection, so add that using alongside Microsoft.Extensions.DependencyInjection.

Full documentation: docs.verifiabl.io.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.0 105 10/19/2026
0.17.0 82 10/13/2026
0.16.0 92 10/9/2026
0.15.0 91 10/4/2026
0.14.0 89 10/4/2026
0.13.0 105 9/30/2026
0.12.0 100 9/29/2026
0.11.0 95 9/28/2026
0.10.0 94 9/28/2026
0.9.0 108 9/18/2026
0.8.0 95 9/16/2026
0.7.1 112 9/10/2026
0.7.0 115 9/10/2026
0.6.0 117 9/3/2026
0.5.0 115 9/3/2026