Пример #1
0
 public ActionResult Authenticate()
 {
     try
     {
         var token = userManager.GetUserToken();
         return(Ok(new { access_token = token }));
     }
     catch (Exception ex)
     {
         logger.Error(ex, "An error occurred");
         return(StatusCode(StatusCodes.Status500InternalServerError, ex));
     }
 }
Пример #2
0
        public ActionResult Authenticate()
        {
            var token = userManager.GetUserToken();

            return(Ok(new { access_token = token }));
        }