HappYness-Project / Happy-EventSourcing

Event sourcing
10 stars 1 forks source link

HP | BlazorUI, Person Service | TrySignInAndGetUserAsync implementation #90

Open hyunbin7303 opened 1 year ago

hyunbin7303 commented 1 year ago

Description

  1. Post request to public async Task<IActionResult> Authorize() - Identity
  2. Identity service gets Request, redirect Callback. callback endpoint should be created.
  3. callback pass. 정보는 쿠키안에 저장이 되어 있다.
  4. return await response.Content.ReadFromJsonAsync<Result>();

    Request body

    public record UserLoginDto
    {
        public string UserName { get; set; }
        public string Password { get; set; }
        public string Email { get; set; }
    }

    Request Route api/auth/login