Add custom authorization policies and minor Swagger fix

Introduce SenderOrReceiverFullyAuth and ReceiverFullyAuth policies for role-based authorization. Register these policies in Program.cs. Also, fix OpenApiReference type for Swagger security configuration.
This commit is contained in:
2026-02-03 15:15:04 +01:00
parent 7c88d4ed4b
commit 2b8edc697a
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
namespace EnvelopeGenerator.Domain.Constants
{
public static class AuthorizationPolicies
{
public const string SenderOrReceiverFullyAuth = "SenderOrReceiverFullyAuth";
public const string ReceiverFullyAuth = "ReceiverFullyAuth";
}
}