从山证v2.3.0拷贝

This commit is contained in:
吴方海
2024-05-09 14:06:26 +08:00
parent 566ff33259
commit f9d8a256a6
4471 changed files with 1203456 additions and 9 deletions
@@ -0,0 +1,30 @@
using BaseOUDAL;
using DocumentFormat.OpenXml.Spreadsheet;
using Microsoft.IdentityModel.Tokens;
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Net.Http;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using YLErp.Helpers;
using YLErp.Modules.SwapModule;
namespace YLErp.BasicTests
{
[TestClass]
public class AuthHelperTest
{
[TestMethod]
public void TestGenerateToken()
{
var identity = UserManager.CreateIdentity("1", "superA", Guid.NewGuid().ToString(""));
var jwtToken2 = AuthHelper.CreateJwtToken2(identity);
var jwtTokenHandler = new JwtSecurityTokenHandler();
var token = jwtTokenHandler.ReadJwtToken(jwtToken2);
Assert.Fail();
}
}
}