Refactor JWT auth scheme configuration

Replaced hardcoded per-envelope receiver JWT auth scheme string with a new `AuthScheme` static class containing a `Receiver` constant. Updated `Program.cs` to use `AuthScheme.Receiver` for authentication and policy configuration. Removed redundant comments and unused constants. Added necessary `using` directive for `AuthScheme`.
This commit is contained in:
2026-06-10 17:14:46 +02:00
parent fc7aa83513
commit a6e174e7c1
2 changed files with 15 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
namespace EnvelopeGenerator.API;
/// <summary>
///
/// </summary>
public static class AuthScheme
{
/// <summary>
/// Scheme name used for per-envelope receiver JWT authentication.
/// </summary>
public const string Receiver = "EnvelopeGenerator.API.EnvelopeReceiverJwt";
}