authorization
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user