Introduce SenderOrReceiverFullyAuth and ReceiverFullyAuth policies for role-based authorization. Register these policies in Program.cs. Also, fix OpenApiReference type for Swagger security configuration.
9 lines
261 B
C#
9 lines
261 B
C#
namespace EnvelopeGenerator.Domain.Constants
|
|
{
|
|
public static class AuthorizationPolicies
|
|
{
|
|
public const string SenderOrReceiverFullyAuth = "SenderOrReceiverFullyAuth";
|
|
public const string ReceiverFullyAuth = "ReceiverFullyAuth";
|
|
}
|
|
}
|