From 3ba55cbe9a70513dde7668db52eac3bd8a51d825 Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 29 May 2026 08:47:18 +0200 Subject: [PATCH] Add DigitalData.Auth.Claims project and EnvelopeClaimNames Added a new .NET project `DigitalData.Auth.Claims` targeting `net8.0` with metadata for NuGet packaging. The project is configured to not generate a NuGet package on build. Introduced the `EnvelopeClaimNames` static class to define strongly-typed constants for custom JWT claim names specific to envelope receiver tokens. These include `EnvelopeId`, `EnvelopeUuid`, `ReceiverId`, and `ReceiverSignature`. Added XML documentation for all constants. --- .../DigitalData.Auth.Claims.csproj | 29 ++++++++++++++++ DigitalData.Auth.Claims/EnvelopeClaimNames.cs | 34 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 DigitalData.Auth.Claims/DigitalData.Auth.Claims.csproj create mode 100644 DigitalData.Auth.Claims/EnvelopeClaimNames.cs diff --git a/DigitalData.Auth.Claims/DigitalData.Auth.Claims.csproj b/DigitalData.Auth.Claims/DigitalData.Auth.Claims.csproj new file mode 100644 index 0000000..327398d --- /dev/null +++ b/DigitalData.Auth.Claims/DigitalData.Auth.Claims.csproj @@ -0,0 +1,29 @@ + + + + net8.0 + enable + enable + + + DigitalData.Auth.Claims + Digital Data GmbH + Digital Data GmbH + DigitalData.Auth.Claims + + Provides strongly-typed JWT claim name constants for the DigitalData.Auth ecosystem. + Includes domain-specific claim definitions (e.g. envelope and receiver claims) + to be shared across API, client, and consumer projects. + + Copyright 2026 Digital Data GmbH + https://git.dd/AppStd/DigitalData.Auth + digital data auth claims jwt constants + false + 1.0.0 + 1.0.0 + 1.0.0 + false + + + + diff --git a/DigitalData.Auth.Claims/EnvelopeClaimNames.cs b/DigitalData.Auth.Claims/EnvelopeClaimNames.cs new file mode 100644 index 0000000..c30619a --- /dev/null +++ b/DigitalData.Auth.Claims/EnvelopeClaimNames.cs @@ -0,0 +1,34 @@ +namespace DigitalData.Auth.Claims +{ + /// + /// Defines the custom JWT claim names used for envelope receiver tokens. + /// These claims are domain-specific and have no equivalent in . + /// + public static class EnvelopeClaimNames + { + /// + /// The database primary key of the envelope. + /// Claim name: envelope_id + /// + public const string EnvelopeId = "envelope_id"; + + /// + /// The unique identifier (UUID) of the envelope. + /// Claim name: envelope_uuid + /// + public const string EnvelopeUuid = "envelope_uuid"; + + /// + /// The database primary key of the envelope receiver. + /// Claim name: receiver_id + /// + public const string ReceiverId = "receiver_id"; + + /// + /// The cryptographic signature of the envelope receiver. + /// Together with , it forms the unique envelope key via ToEnvelopeKey(). + /// Claim name: receiver_sig + /// + public const string ReceiverSignature = "receiver_sig"; + } +}