Beispiel #1
0
        public void Authenticate()
        {
            request.Email    = "*****@*****.**";
            request.Password = "******";

            var isValid = facade.Authenticate(request);

            Assert.True(isValid.Result.IsSuccess);
        }
 public async Task <IActionResult> Authenticate([FromBody] UserProfileRequest request)
 {
     try
     {
         return(Ok(authHelper.GenerateToken(await facade.Authenticate(request))));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }