Trellis.Microservices.Abstractions 0.1.0-alpha.68

This is a prerelease version of Trellis.Microservices.Abstractions.
dotnet add package Trellis.Microservices.Abstractions --version 0.1.0-alpha.68
                    
NuGet\Install-Package Trellis.Microservices.Abstractions -Version 0.1.0-alpha.68
                    
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="Trellis.Microservices.Abstractions" Version="0.1.0-alpha.68" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Trellis.Microservices.Abstractions" Version="0.1.0-alpha.68" />
                    
Directory.Packages.props
<PackageReference Include="Trellis.Microservices.Abstractions" />
                    
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 Trellis.Microservices.Abstractions --version 0.1.0-alpha.68
                    
#r "nuget: Trellis.Microservices.Abstractions, 0.1.0-alpha.68"
                    
#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 Trellis.Microservices.Abstractions@0.1.0-alpha.68
                    
#: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=Trellis.Microservices.Abstractions&version=0.1.0-alpha.68&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Trellis.Microservices.Abstractions&version=0.1.0-alpha.68&prerelease
                    
Install as a Cake Tool

Trellis.Microservices.Abstractions

Shared contract constants for the Trellis internal-network JWT v1.

This package ships one public static classTrellisInternalJwtClaimNames — that pairs the gateway-side minter (Trellis.Yarp) with the consumer-side actor provider (Trellis.Microservices.AspNetCore). Both sides reference these literals so any future contract version bump is one coordinated change.

Properties

  • AOT-compatible — ships only public const string literals
  • No runtime dependencies
  • Tiny — single class

Usage

using Trellis.Microservices.Abstractions;

identity.AddClaim(new Claim(TrellisInternalJwtClaimNames.ContractVersion,
                            TrellisInternalJwtClaimNames.CurrentContractVersion));
identity.AddClaim(new Claim(TrellisInternalJwtClaimNames.PermissionsCount, "3"));
identity.AddClaim(new Claim(TrellisInternalJwtClaimNames.Permissions, "orders:read"));

If you are using Trellis.Yarp AND Trellis.Microservices.AspNetCore (the standard pairing), you do NOT need to reference this package directly — both reference it transitively.

When to reference directly

  • You are implementing a third-party gateway against the Trellis internal JWT contract.
  • You are implementing a custom consumer-side actor provider.
  • You are writing an integration test that hand-crafts JWTs.

Documentation

Full reference: trellis-api-microservices-abstractions.md.

License

MIT.

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.
  • net10.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Trellis.Microservices.Abstractions:

Package Downloads
Trellis.Yarp

YARP gateway integration for Trellis. Re-mints a per-cluster internal JWT from the full Trellis Actor (id + permissions + forbidden permissions + ABAC attributes), exposes an OIDC discovery + JWKS endpoint pair so downstream services can configure AddJwtBearer(o => o.Authority = gatewayUrl) for transparent key rotation, and emits redacted audit telemetry on every mint. Pairs with the consumer-side TrellisInternalJwtActorProvider in Trellis.Microservices.AspNetCore.

Trellis.Microservices.AspNetCore

Consumer-side counterpart to Trellis.Yarp. Hydrates the full Trellis Actor (id + permissions + forbidden permissions + ABAC attributes) from a verified gateway-minted internal JWT, enforcing the strict sentinel + count claim contract that defends the deny-overrides-allow invariant against a proxy stripping the deny set. AOT-compatible.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha.68 61 7/6/2026
0.1.0-alpha.67 62 7/6/2026
0.1.0-alpha.66 89 7/3/2026
0.1.0-alpha.62 70 6/28/2026
0.1.0-alpha.57 78 6/26/2026
0.1.0-alpha.36 198 6/19/2026
0.1.0-alpha.29 91 6/7/2026