14 lines
532 B
C#
14 lines
532 B
C#
using Microsoft.IdentityModel.Tokens;
|
|
using System.Text;
|
|
|
|
namespace YAPWebAPI
|
|
{
|
|
public static class AuthOptions
|
|
{
|
|
public const string ISSUER = "YAP_AuthServer"; // издатель токена
|
|
public const string AUDIENCE = "YAP_AuthClient"; // потребитель токена
|
|
const string KEY = "yapsecret_secretsecretsecretkey!123"; // ключ для шифрования
|
|
public static SymmetricSecurityKey GetSymmetricSecurityKey() => new(Encoding.UTF8.GetBytes(KEY));
|
|
}
|
|
}
|