galaeth-draft/Galaeth.Core/Configuration/JwtConfiguration.cs

43 lines
901 B
C#
Raw Permalink Normal View History

2024-11-17 10:31:01 +01:00
namespace Galaeth.Core.Configuration;
/// <summary>
/// Jwt Authentication Configuration.
/// </summary>
public class JwtConfiguration
{
/// <summary>
/// Secret key.
/// </summary>
public string SecretKey { get; set; }
/// <summary>
/// Issuer.
/// </summary>
public string Issuer { get; set; }
/// <summary>
/// Audience.
/// </summary>
public string Audience { get; set; }
/// <summary>
/// Access token expiration.
/// </summary>
public string AccessTokenExpiration { get; set; }
/// <summary>
/// Refresh token expiration.
/// </summary>
public string RefreshTokenExpiration { get; set; }
/// <summary>
/// Validate issuer.
/// </summary>
public bool ValidateIssuer { get; set; }
/// <summary>
/// Validate audience.
/// </summary>
public bool ValidateAudience { get; set; }
}