You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
562 B
24 lines
562 B
using IdentityServer.DDD.Contracts.Models;
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace IdentityServer.Pages.Authentication;
|
|
|
|
public partial class Error
|
|
{
|
|
[Parameter]
|
|
[SupplyParameterFromQuery]
|
|
public string ErrorId { get; set; }
|
|
public ErrorModel ErrorModel { get; set; }
|
|
|
|
protected override async Task OnAfterRenderAsync(bool firstRender)
|
|
{
|
|
if (firstRender)
|
|
{
|
|
ErrorModel = await Spa.GetErrorAsync(ErrorId);
|
|
|
|
StateHasChanged();
|
|
}
|
|
}
|
|
|
|
[Inject] SpaService Spa { get; set; }
|
|
}
|
|
|