authorization

This commit is contained in:
Aleksandr Popov
2023-06-25 12:39:49 +02:00
parent 4df16b26db
commit 944712df97
6 changed files with 98 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
using System.Text;
using Microsoft.IdentityModel.Tokens;
namespace TURN.Services.Chess
{
public class AuthOptions
{
public const string ISSUER = "MyAuthServer";
public const string AUDIENCE = "MyAuthClient";
public const string KEY = "gfsdfaverGEahjnhtrsBHSRtfbr564T#t346bdfW3rt4rft";
public static SymmetricSecurityKey GetSymmetricSecurityKey()
{
return new SymmetricSecurityKey(Encoding.UTF8.GetBytes(KEY));
}
}
}