Table of Contents

Class ConsentDeniedEvent

Namespace
Fdyay.IdentityServer.Events
Assembly
Fdyay.IdentityServer.Core.dll

A user refused a client, or approved it with nothing ticked, which is the same answer.

public class ConsentDeniedEvent : Event
Inheritance
ConsentDeniedEvent
Inherited Members

Remarks

All three approval screens treat a grant of no scopes as a refusal — the client is entitled to hear access_denied rather than be given an empty grant or left to poll until its request expires — and this event agrees with them. Recording that button as consent would report a user as having agreed to something they explicitly declined.

Constructors

ConsentDeniedEvent(string, string)

A user's refusal of a client.

public ConsentDeniedEvent(string subjectId, string clientId)

Parameters

subjectId string

The user who refused.

clientId string

The client refused.

Properties

ClientId

The client refused.

public string ClientId { get; }

Property Value

string

RequestedScopes

What the client asked for and was refused. Duende's.

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

Property Value

IEnumerable<string>

SubjectId

The user who refused.

public string SubjectId { get; }

Property Value

string