feat(EnvelopeClaimTypes): „envelope ID“ als Auth-Claim hinzugefügt.

This commit is contained in:
Developer 02
2024-10-09 00:51:59 +02:00
parent bfd4e6a8ed
commit da28a7332b
5 changed files with 19 additions and 5 deletions

View File

@@ -52,8 +52,7 @@ namespace EnvelopeGenerator.Application
services.Configure<DispatcherConfig>(dispatcherConfigSection);
services.Configure<MailConfig>(mailConfigSection);
//services.Configure<MailConfig>(mailConfig.GetSection(typeof(MailConfig).ToString()));
//IConfigurationSection section = builder.Configuration.GetSection(typeof(T).Name);
return services;
}

View File

@@ -3,13 +3,16 @@
namespace EnvelopeGenerator.Application.DTOs.EnvelopeReceiverReadOnly
{
public record EnvelopeReceiverReadOnlyCreateDto(
long EnvelopeId,
string ReceiverMail,
DateTime DateValid)
{
[JsonIgnore]
public long? EnvelopeId { get; set; } = null;
[JsonIgnore]
public string? AddedWho { get; set; }
[JsonIgnore]
public DateTime AddedWhen { get; } = DateTime.Now;
};
}