forked from CyberBloom/CyberBloomBackend
14 lines
519 B
C#
14 lines
519 B
C#
using System.Text;
|
|
using Microsoft.IdentityModel.Tokens;
|
|
|
|
public class AuthOptions
|
|
{
|
|
public const string ISSUER = "MyAuthServer"; // издатель токена
|
|
public const string AUDIENCE = "MyAuthClient"; // потребитель токена
|
|
const string KEY = "mysupersecret_secretkey!123"; // ключ для шифрации
|
|
|
|
public const int LIFETIME = 1;
|
|
public static SymmetricSecurityKey GetSymmetricSecurityKey() =>
|
|
new SymmetricSecurityKey(Encoding.UTF8.GetBytes(KEY));
|
|
}
|