Exemple #1
0
        public async Task <IActionResult> Error(string errorId)
        {
            //return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
            var vm = new IdentityServer4.Quickstart.UI.ErrorViewModel();

            // retrieve error details from identityserver
            var message = await _interaction.GetErrorContextAsync(errorId);

            if (message != null)
            {
                vm.Error = message;
            }

            return(View("Error", vm));
        }