Table of Contents

Class AuthorizationRequest

Namespace
Fdyay.IdentityServer.Models
Assembly
Fdyay.IdentityServer.AspNetCore.dll

Details of a pending authorization request, for the login/consent UI.

public sealed class AuthorizationRequest : IAuthenticationContext
Inheritance
AuthorizationRequest
Implements
Inherited Members

Properties

AcrValues

The values of the acr_values parameter, if present. Carried for the UI; not enforced here.

public IReadOnlyCollection<string> AcrValues { get; init; }

Property Value

IReadOnlyCollection<string>

Client

The client the request was made by.

public Client Client { get; init; }

Property Value

Client

Remarks

The whole client rather than its id: a consent screen needs its display name and logo, and a login page often needs more still. This is the shape the established interactive-UI convention reads, which is the point — a page copied from a host built on that convention has to compile here.

DisplayMode

The display parameter, if present. Carried for the UI; not enforced here.

public string? DisplayMode { get; init; }

Property Value

string

IdP

The idp hint, if present. Carried for the UI; not enforced here.

public string? IdP { get; init; }

Property Value

string

LoginHint

The login_hint parameter of the authorize request, if present.

public string? LoginHint { get; init; }

Property Value

string

Parameters

The raw parameters of the authorize request, for a UI that needs one this model does not name.

public IReadOnlyDictionary<string, string> Parameters { get; init; }

Property Value

IReadOnlyDictionary<string, string>

PromptModes

The values of the prompt parameter, if present. Carried for the UI; not enforced here.

public IReadOnlyCollection<string> PromptModes { get; init; }

Property Value

IReadOnlyCollection<string>

RedirectUri

The redirect_uri of the authorize request, validated against the client's registered RedirectUris. It is empty when the request carried no redirect_uri or carried one that is not registered for the client, so an unregistered target never reaches the UI.

public string RedirectUri { get; init; }

Property Value

string

RequestObjectValues

Values carried by a request object, when one was used.

public IReadOnlyDictionary<string, string> RequestObjectValues { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Tenant

The tenant hint, if present. Carried for the UI; not enforced here.

public string? Tenant { get; init; }

Property Value

string

UiLocales

The ui_locales parameter, if present. Carried for the UI; not enforced here.

public string? UiLocales { get; init; }

Property Value

string

ValidatedResources

The requested scopes resolved against the resource store — display names, and offline access. The consent screen's scope list comes from here: a scope that would be rejected is not one to ask about.

public ResourceValidationResult ValidatedResources { get; init; }

Property Value

ResourceValidationResult