52 lines
2.0 KiB
C#
52 lines
2.0 KiB
C#
// using Microsoft.AspNetCore.Mvc;
|
|
//
|
|
// using Swashbuckle.AspNetCore.Annotations;
|
|
//
|
|
// using BrokerCore.ApiModels;
|
|
// using BrokerCore.Common;
|
|
//
|
|
// namespace BrokerApiServer.Controllers;
|
|
//
|
|
// using BrokerCore.Services;
|
|
//
|
|
// using Common;
|
|
//
|
|
// [Route("api/v1/account")]
|
|
// [ApiController, SwaggerTag("**PlanetUser 항목으로 이전 후 삭제 예정** (3월 말 예정)")]
|
|
// // 플래닛에서 b2b 유저 로그인하는 컨트롤러
|
|
// public class AccountController : PlanetAuthControllerBase
|
|
// {
|
|
// private readonly UserAuthService m_user_auth_service;
|
|
//
|
|
// public AccountController(UserAuthService userAuthService)
|
|
// {
|
|
// m_user_auth_service = userAuthService;
|
|
// }
|
|
//
|
|
// [SwaggerIgnore]
|
|
// [HttpPost, Route("login"), RequirePlanetAuth]
|
|
// [Produces("application/json")]
|
|
// [ProducesResponseType(typeof(LoginResponse), StatusCodes.Status200OK)]
|
|
// [ProducesResponseType(typeof(ApiErrorResponse), StatusCodes.Status400BadRequest)]
|
|
// [SwaggerOperation(Summary = "웹 포털 런처 토큰으로 칼리버스 유저 인증 처리 (삭제 예정 - 3월말 런칭에 불포함)",
|
|
// Description = "플래닛의 클라이언트 구동 시 항상 유저 인증 후 실행해야 함")]
|
|
// public async Task<IActionResult> login([FromBody] LoginRequest request)
|
|
// {
|
|
// Guard.Against.isNull(request, ServerErrorCode.InvalidRequest, "Request is empty");
|
|
// Guard.Against.isNullOrEmptyOrWhiteSpace(request.WebPortalToken, ServerErrorCode.InvalidRequest,
|
|
// "WebPortalToken does not exist");
|
|
//
|
|
// var result = await m_user_auth_service.authByWebPortalToken(request.WebPortalToken, this.PlanetId);
|
|
// Guard.Against.resultFail(result);
|
|
// return Ok(new LoginResponse { UserGuid = m_user_auth_service.UserGuid, Nickname = m_user_auth_service.Nickname, });
|
|
// }
|
|
//
|
|
// [SwaggerIgnore]
|
|
// [HttpPost, Route("dummy")]
|
|
// public async Task<IActionResult> dummy([FromBody] DummyRequest request)
|
|
// {
|
|
// await Task.CompletedTask;
|
|
// return Ok(new DummyResponse { Dummy = request.Dummy });
|
|
// }
|
|
// }
|