Table of Contents

Class AuthorizationCode

Namespace
Duende.IdentityServer.Models
Assembly
Duende.IdentityServer.Storage.dll

Models an authorization code.

public class AuthorizationCode
Inheritance
AuthorizationCode
Inherited Members

Constructors

AuthorizationCode()

public AuthorizationCode()

Properties

ClientId

Gets or sets the ID of the client.

public string ClientId { get; set; }

Property Value

string

The ID of the client.

CodeChallenge

Gets or sets the code challenge.

public string? CodeChallenge { get; set; }

Property Value

string

The code challenge.

CodeChallengeMethod

Gets or sets the code challenge method.

public string? CodeChallengeMethod { get; set; }

Property Value

string

The code challenge method

CreationTime

Gets or sets the creation time.

public DateTime CreationTime { get; set; }

Property Value

DateTime

The creation time.

DPoPKeyThumbprint

The thumbprint of the associated DPoP proof key, if one was used.

public string? DPoPKeyThumbprint { get; set; }

Property Value

string

Description

Gets the description the user assigned to the device being authorized.

public string? Description { get; set; }

Property Value

string

The description.

IsOpenId

Gets or sets a value indicating whether this code is an OpenID Connect code.

public bool IsOpenId { get; set; }

Property Value

bool

true if this instance is open identifier; otherwise, false.

Lifetime

Gets or sets the life time in seconds.

public int Lifetime { get; set; }

Property Value

int

The life time.

Nonce

Gets or sets the nonce.

public string? Nonce { get; set; }

Property Value

string

The nonce.

Properties

Gets or sets properties

public IDictionary<string, string> Properties { get; set; }

Property Value

IDictionary<string, string>

The properties

RedirectUri

Gets or sets the redirect URI.

public string RedirectUri { get; set; }

Property Value

string

The redirect URI.

RequestedResourceIndicators

Gets or sets the requested resource indicators.

public IEnumerable<string>? RequestedResourceIndicators { get; set; }

Property Value

IEnumerable<string>

RequestedScopes

Gets or sets the requested scopes.

public IEnumerable<string> RequestedScopes { get; set; }

Property Value

IEnumerable<string>

The requested scopes.

SessionId

Gets or sets the session identifier.

public string SessionId { get; set; }

Property Value

string

The session identifier.

StateHash

Gets or sets the hashed state (to output s_hash claim).

public string? StateHash { get; set; }

Property Value

string

The hashed state.

Subject

Gets or sets the subject.

public ClaimsPrincipal Subject { get; set; }

Property Value

ClaimsPrincipal

The subject.

WasConsentShown

Gets or sets a value indicating whether consent was shown.

public bool WasConsentShown { get; set; }

Property Value

bool

true if consent was shown; otherwise, false.