AuthCallout.Client.Wolverine 0.1.35

dotnet add package AuthCallout.Client.Wolverine --version 0.1.35
                    
NuGet\Install-Package AuthCallout.Client.Wolverine -Version 0.1.35
                    
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="AuthCallout.Client.Wolverine" Version="0.1.35" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AuthCallout.Client.Wolverine" Version="0.1.35" />
                    
Directory.Packages.props
<PackageReference Include="AuthCallout.Client.Wolverine" />
                    
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 AuthCallout.Client.Wolverine --version 0.1.35
                    
#r "nuget: AuthCallout.Client.Wolverine, 0.1.35"
                    
#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 AuthCallout.Client.Wolverine@0.1.35
                    
#: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=AuthCallout.Client.Wolverine&version=0.1.35
                    
Install as a Cake Addin
#tool nuget:?package=AuthCallout.Client.Wolverine&version=0.1.35
                    
Install as a Cake Tool

AuthCallout.Client.Wolverine

Wolverine integration for nats-auth-callout-service (ADR 0022): a thin adapter binding AuthCallout.Client's token acquisition, connection, and identity-propagation seams into WolverineFx.Nats's transport and handler pipeline. All behavior lives in AuthCallout.Client; this package only wires it into Wolverine.

What it gives you

  1. opts.UseNatsWithCallout(callout => ...): authenticates Wolverine's NATS transport through the callout via an AuthCallback that pulls a current token from your ICalloutTokenProvider on every (re)connect (ADR 0021 rules 4-5), and scopes the transport connection's InboxPrefix to the callout's per-principal inbox grant via ConfigureNatsOpts. Discovery and identity-verification KV reads run over that same single connection. Requires WolverineFx.Nats 6.47+.
  2. Outbound: the connection's cached Callout-Identity assertion is attached to every outgoing envelope (no-op when the application's discovery descriptor has identity propagation disabled).
  3. Inbound: CalloutIdentityMiddleware, applied to every handler chain by default (opt out per message type with [RequireIdentity(false)]), verifies the Callout-Identity header and injects a CalloutIdentityContext parameter, or stops the chain on a missing/forged/expired header.

Quick start (service, client credentials)

builder.UseWolverine(opts =>
{
    opts.UseNatsWithCallout(callout =>
    {
        callout.Url = "nats://localhost:4222";
        callout.ApplicationName = "notes";
        callout.UseClientCredentials(cc =>
        {
            cc.Authority = new Uri("https://idp.example.com/realms/dev");
            cc.ClientId = "notes-worker";
            cc.ClientSecret = SecretRef.Inline("...");
        });
    });

    opts.PublishMessage<CreateNote>().ToNatsSubject("notes.commands");
    opts.ListenToNatsSubject("notes.commands");
});

A handler receiving a verified caller just takes the context as a parameter:

public static NoteCreated Handle(CreateNote command, CalloutIdentityContext identity)
{
    // identity.Subject, identity.Application are verified, signed by the callout (ADR 0011).
    ...
}

Exempt a message type that accepts anonymous traffic (e.g. a registration/discovery request):

[RequireIdentity(false)]
public sealed record RegisterDevice(string DeviceId);

Docs: https://ryandanthony.github.io/nats-auth-callout-service/ (see the Wolverine guide).

Product 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. 
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
0.1.35 88 11/16/2026
0.1.34 90 11/16/2026
0.1.33 88 11/15/2026
0.1.30 94 11/15/2026