astral-api/Astral.Core/Options/JwtOptions.cs
2024-12-11 20:36:30 +00:00

46 lines
1 KiB
C#

// <copyright file="JwtOptions.cs" company="alveus.dev">
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
// </copyright>
namespace Astral.Core.Options;
/// <summary>
/// Jwt Authentication Configuration.
/// </summary>
public class JwtOptions
{
/// <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; }
}