Class ErrorModel
- Namespace
- Fdyay.IdentityServer.UI.Pages.Account
- Assembly
- Fdyay.IdentityServer.UI.dll
The default error page. The context is looked up server-side by the opaque id in the query string — nothing about the failure is read from the query string itself.
public class ErrorModel : PageModel, IAsyncPageFilter, IPageFilter, IFilterMetadata
- Inheritance
-
ErrorModel
- Implements
- Inherited Members
Constructors
ErrorModel(IIdentityServerInteractionService, IOptions<IdentityServerOptions>)
Creates the page model, as the container resolves it.
public ErrorModel(IIdentityServerInteractionService interaction, IOptions<IdentityServerOptions> options)
Parameters
interactionIIdentityServerInteractionServiceReads the error context stored under the id.
optionsIOptions<IdentityServerOptions>The server options: the id's query parameter, and whether protocol detail is shown.
Properties
ErrorContext
The stored context, or null when the id is missing, unknown or expired.
public ErrorMessage? ErrorContext { get; }
Property Value
ReferenceId
The opaque id from the query string, shown so a user can quote it to support.
public string? ReferenceId { get; }
Property Value
Remarks
Available even when the lookup misses — an in-process store may not hold the id this instance was sent.
ShowDetail
Whether the host allows the protocol detail to be shown, and there is any to show.
public bool ShowDetail { get; }
Property Value
Methods
OnGetAsync()
Reads the error id from the query string under UserInteraction.ErrorIdParameter, looks up its stored context,
and decides whether its protocol detail is shown.
public Task OnGetAsync()
Returns
- Task
A task that completes when the page's properties are set.