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