Relax and rename auth policies for sender/receiver roles

Replaced SenderOrReceiverFullyAuth and ReceiverFullyAuth policies with more general SenderOrReceiver and Receiver policies. Updated policy definitions in AuthPolicy.cs to use nameof for clarity. Adjusted AddAuthorizationBuilder configuration and [Authorize] attributes in controllers to use the new, less restrictive policies, simplifying authorization logic.
This commit is contained in:
2026-02-03 16:08:15 +01:00
parent 1b95b9d7e0
commit eb345a0e4d
4 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ namespace EnvelopeGenerator.Domain.Constants
{
public static class AuthPolicy
{
public const string SenderOrReceiverFullyAuth = "SenderOrReceiverFullyAuth";
public const string ReceiverFullyAuth = "ReceiverFullyAuth";
public const string SenderOrReceiver = nameof(SenderOrReceiver) + nameof(AuthPolicy);
public const string Receiver = nameof(Receiver) + nameof(AuthPolicy);
}
}