250501 커밋

This commit is contained in:
2025-05-01 07:23:28 +09:00
parent 98bb2e3c5c
commit 23176551b7
353 changed files with 9972 additions and 6652 deletions

View File

@@ -1,17 +1,17 @@
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using BrokerApiCore;
using Xunit.Abstractions;
using BrokerApiServer;
namespace BrokerTest.Jwt;
//=============================================================================================
// Jwt 토큰 생성 및 파싱 기본 라이브러리 사용 테스트
//=============================================================================================
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using Xunit.Abstractions;
using BrokerCore.Common;
using BrokerCore.Services;
namespace BrokerTest.Jwt;
public class JwtBasicTests
{
private readonly ITestOutputHelper m_test_output_helper;

View File

@@ -1,48 +0,0 @@
// using ServerCommon;
// using ServerCore; using ServerBase;
// using Services;
//
// namespace BrokerTest.Jwt;
// public class SsoTests
// {
// private readonly ServerConfig m_server_config;
// private readonly string m_web_portal_token_secret;
// private readonly string m_account_db;
//
// public SsoTests()
// {
// Log.NLogFileName = "./TestConfig/nlog-BrokerApiServer.config";
// Log.initLog("BrokerApiServerTest", "Developer");
// var path = "./TestConfig/ServerConfig-Local.json";
// var full_path = Path.GetFullPath(path);
// m_server_config = new ServerConfig();
// m_server_config.setConfigFilePath(full_path);
// m_server_config.loadConfig();
// m_account_db = m_server_config.AccountNftDb;
// m_web_portal_token_secret = m_server_config.SsoAccountAuthJwtSecretKey;
// }
//
// private async Task findTestAccount()
// {
// var sso_account_auth = new WebPortalTokenAuthService(m_account_db, m_web_portal_token_secret);
// var result = await sso_account_auth.mysqlAuthWithEmail("tenafter71@gmail.com", 1);
// Assert.True(result.isSuccess());
// // m_account_id = result.getAccountId();
// }
//
// [Fact]
// public async Task ssoFailTest()
// {
// var sso_account_auth = new WebPortalTokenAuthService(m_account_db, m_web_portal_token_secret);
// var result = await sso_account_auth.mysqlAuthWithEmail("test", 1);
// Assert.True(result.isFail());
// }
//
// [Fact]
// public async Task ssoSuccessTest()
// {
// var sso_account_auth = new WebPortalTokenAuthService(m_account_db, m_web_portal_token_secret);
// var result = await sso_account_auth.mysqlAuthWithEmail("test@test.com", 1);
// Assert.True(result.isSuccess());
// }
// }