Table of Contents

Class Consent

Namespace
Fdyay.IdentityServer.Models
Assembly
Fdyay.IdentityServer.Core.dll

A user's stored consent for a client's scopes.

public class Consent
Inheritance
Consent
Inherited Members

Properties

The client the consent was given to.

public string ClientId { get; set; }

Property Value

string

When the consent was given (UTC).

public DateTime CreationTime { get; set; }

Property Value

DateTime

What the user called this decision, for the grant list an account screen shows.

public string? Description { get; set; }

Property Value

string

Carried by Description, which both SQL dialects have always stored and GetAllUserGrantsAsync has always read back. Until 0.20.0 nothing produced it: a ConsentResponse.Description documented as being "for the user's grant list" reached the store and stopped, so every row in that list was unnamed however the decision had been described.

When the consent lapses (UTC), or null when it does not — set from the client's ConsentLifetime.

public DateTime? Expiration { get; set; }

Property Value

DateTime?

The scopes the user consented to.

public ICollection<string> Scopes { get; set; }

Property Value

ICollection<string>

The user who gave the consent.

public string SubjectId { get; set; }

Property Value

string