Renamed receiver roles FullyAuth → Receiver.Full and PreAuth → Receiver.TFA across the codebase for improved clarity and consistency. Updated all usages, [Authorize] attributes, role checks, authentication logic, and authorization policies to use the new role names. Marked old constants as obsolete and pointed them to the new values. This change enhances code readability and groups receiver roles under the Receiver static class.
23 lines
541 B
C#
23 lines
541 B
C#
#if NETFRAMEWORK
|
|
using System;
|
|
#endif
|
|
|
|
namespace EnvelopeGenerator.Domain.Constants
|
|
{
|
|
public static class Role
|
|
{
|
|
[Obsolete("Use Receiver.TFA")]
|
|
public const string ReceiverTFA = Receiver.TFA;
|
|
|
|
[Obsolete("Use Receiver.Full")]
|
|
public const string ReceiverFull = Receiver.Full;
|
|
|
|
public static class Receiver
|
|
{
|
|
public const string TFA = "EGReceiverTFA";
|
|
public const string Full = "EGReceiver";
|
|
}
|
|
|
|
public const string Sender = "EGSender";
|
|
}
|
|
} |