43 lines
901 B
C#
43 lines
901 B
C#
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; }
|
|
}
|