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.
9 lines
268 B
C#
9 lines
268 B
C#
namespace EnvelopeGenerator.Domain.Constants
|
|
{
|
|
public static class AuthPolicy
|
|
{
|
|
public const string SenderOrReceiver = nameof(SenderOrReceiver) + nameof(AuthPolicy);
|
|
public const string Receiver = nameof(Receiver) + nameof(AuthPolicy);
|
|
}
|
|
}
|