17 lines
582 B
C#
17 lines
582 B
C#
using System.Security.Claims;
|
|
using Microsoft.IdentityModel.Tokens;
|
|
|
|
namespace AuthenticationService.Models
|
|
{
|
|
public class JWTContainerModel : IAuthContainerModel
|
|
{
|
|
#region Public Methods
|
|
public int ExpireMinutes { get; set; } = 60;
|
|
public string SecretKey { get; set; } = "TW9zaGVFcmV6UHJpdmF0ZUtleQ=="; // This secret key should be moved to some configurations outter server.
|
|
public string SecurityAlgorithm { get; set; } = SecurityAlgorithms.HmacSha256Signature;
|
|
|
|
public Claim[] Claims { get; set; }
|
|
#endregion
|
|
}
|
|
}
|