авторизация
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 1m18s
Create and publish a Docker image / Deploy image (push) Successful in 38s

This commit is contained in:
2023-12-24 04:16:18 +03:00
parent d2d2685672
commit b5477d529f
31 changed files with 973 additions and 967 deletions

13
CyberBoom/AuthOptions.cs Normal file
View File

@ -0,0 +1,13 @@
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));
}