First Initial
This commit is contained in:
16
AuthenticationService/JWTContainerModel.cs
Normal file
16
AuthenticationService/JWTContainerModel.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user