Trellis.Microservices.Abstractions
0.1.0-alpha.68
dotnet add package Trellis.Microservices.Abstractions --version 0.1.0-alpha.68
NuGet\Install-Package Trellis.Microservices.Abstractions -Version 0.1.0-alpha.68
<PackageReference Include="Trellis.Microservices.Abstractions" Version="0.1.0-alpha.68" />
<PackageVersion Include="Trellis.Microservices.Abstractions" Version="0.1.0-alpha.68" />
<PackageReference Include="Trellis.Microservices.Abstractions" />
paket add Trellis.Microservices.Abstractions --version 0.1.0-alpha.68
#r "nuget: Trellis.Microservices.Abstractions, 0.1.0-alpha.68"
#:package Trellis.Microservices.Abstractions@0.1.0-alpha.68
#addin nuget:?package=Trellis.Microservices.Abstractions&version=0.1.0-alpha.68&prerelease
#tool nuget:?package=Trellis.Microservices.Abstractions&version=0.1.0-alpha.68&prerelease
Trellis.Microservices.Abstractions
Shared contract constants for the Trellis internal-network JWT v1.
This package ships one public static class — TrellisInternalJwtClaimNames — 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 stringliterals - 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 | 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
- 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 |