mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 09:11:10 +00:00
Renames Model to Dto
This commit is contained in:
1 parent
76b9596a27
commit
3aa9702411
32 files changed
+179
-139
No files matched your search
@@ -0,0 +1,34 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Infrastructure.Common.Models.DTO.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for deserializing media settings.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("{SECTION_NAME}")]
|
||||
public class JwtSettingsDto
|
||||
{
|
||||
public const string SECTION_NAME = "JwtSettings";
|
||||
|
||||
/// <summary>
|
||||
/// The secret key used to sign the JWT. This should be a strong, securely stored key.
|
||||
/// </summary>
|
||||
public required string SecretKey { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The duration (in minutes) for which the JWT is valid.
|
||||
/// </summary>
|
||||
public required int ExpiryMinutes { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The issuer of the JWT, typically the application or service generating the token.
|
||||
/// </summary>
|
||||
public required string Issuer { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The intended audience for the JWT, usually representing the clients that can consume the token.
|
||||
/// </summary>
|
||||
public required string Audience { get; init; }
|
||||
}
|
||||
Reference in new issue
Block a user