2024-12-09 13:19:55 +05:00
|
|
|
|
using Microsoft.IdentityModel.Tokens;
|
|
|
|
|
using System.Text;
|
2024-11-25 10:09:38 +05:00
|
|
|
|
|
2024-12-16 15:38:46 +05:00
|
|
|
|
namespace DD.Persistence.Models.Configurations
|
2024-11-25 10:09:38 +05:00
|
|
|
|
{
|
2024-12-09 13:19:55 +05:00
|
|
|
|
public static class JwtParams
|
|
|
|
|
{
|
|
|
|
|
private static readonly string KeyValue = "супер секретный ключ для шифрования";
|
|
|
|
|
public static SymmetricSecurityKey SecurityKey
|
|
|
|
|
{
|
|
|
|
|
get { return new SymmetricSecurityKey(Encoding.ASCII.GetBytes(KeyValue)); }
|
|
|
|
|
}
|
2024-11-25 10:09:38 +05:00
|
|
|
|
|
2024-12-09 13:19:55 +05:00
|
|
|
|
public static readonly string Issuer = "a";
|
2024-11-25 10:09:38 +05:00
|
|
|
|
|
2024-12-09 13:19:55 +05:00
|
|
|
|
public static readonly string Audience = "a";
|
|
|
|
|
}
|
2024-11-25 10:09:38 +05:00
|
|
|
|
}
|