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
ClientId
The client the consent was given to.
public string ClientId { get; set; }
Property Value
CreationTime
When the consent was given (UTC).
public DateTime CreationTime { get; set; }
Property Value
Description
What the user called this decision, for the grant list an account screen shows.
public string? Description { get; set; }
Property Value
Remarks
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.
Expiration
When the consent lapses (UTC), or null when it does not — set from the client's ConsentLifetime.
public DateTime? Expiration { get; set; }
Property Value
Scopes
The scopes the user consented to.
public ICollection<string> Scopes { get; set; }
Property Value
SubjectId
The user who gave the consent.
public string SubjectId { get; set; }