Table of Contents

Class ValidatedRequest

Namespace
Duende.IdentityServer.Validation
Assembly
Duende.IdentityServer.dll

Base class for a validate authorize or token request

public class ValidatedRequest
Inheritance
ValidatedRequest
Derived
Inherited Members

Constructors

ValidatedRequest()

public ValidatedRequest()

Properties

AccessTokenLifetime

Gets or sets the effective access token lifetime for the current request. This value is initally read from the client configuration but can be modified in the request pipeline

public int AccessTokenLifetime { get; set; }

Property Value

int

AccessTokenType

Gets or sets the effective access token type for the current request. This value is initally read from the client configuration but can be modified in the request pipeline

public AccessTokenType AccessTokenType { get; set; }

Property Value

AccessTokenType

Client

Gets or sets the client.

public Client Client { get; set; }

Property Value

Client

The client.

ClientClaims

Gets or sets the client claims for the current request. This value is initally read from the client configuration but can be modified in the request pipeline

public ICollection<Claim> ClientClaims { get; set; }

Property Value

ICollection<Claim>

ClientId

Gets or sets the client ID that should be used for the current request (this is useful for token exchange scenarios)

public string ClientId { get; set; }

Property Value

string

The client ID

Confirmation

Gets or sets the value of the confirmation method (will become the cnf claim). Must be a JSON object.

public string? Confirmation { get; set; }

Property Value

string

The confirmation.

IssuerName

The name of the issuer for the current request

public string IssuerName { get; set; }

Property Value

string

Options

Gets or sets the identity server options.

public IdentityServerOptions Options { get; set; }

Property Value

IdentityServerOptions

The options.

ProofType

The type of proof for the request

public ProofType ProofType { get; set; }

Property Value

ProofType

Raw

Gets or sets the raw request data

public NameValueCollection Raw { get; set; }

Property Value

NameValueCollection

The raw.

Secret

Gets or sets the secret used to authenticate the client.

public ParsedSecret? Secret { get; set; }

Property Value

ParsedSecret

The parsed secret.

SessionId

Gets or sets the session identifier.

public string? SessionId { get; set; }

Property Value

string

The session identifier.

Subject

Gets or sets the subject.

public ClaimsPrincipal? Subject { get; set; }

Property Value

ClaimsPrincipal

The subject.

ValidatedResources

Gets or sets the validated resources for the request.

public ResourceValidationResult ValidatedResources { get; set; }

Property Value

ResourceValidationResult

The validated resources.

Methods

SetClient(Client, ParsedSecret?, string)

Sets the client and the appropriate request specific settings.

public void SetClient(Client client, ParsedSecret? secret = null, string confirmation = "")

Parameters

client Client

The client.

secret ParsedSecret

The client secret (optional).

confirmation string

The confirmation.

Exceptions

ArgumentNullException

client