Skip to main content

ConsentRequired Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.Authorization.Interfaces

ConsentRequired Class

Outcome signalling that the user is authenticated but has not yet granted every scope or resource the client is asking for, so the host must show its consent UI for the deltas in RequiredUserConsents. Maps to OpenID Connect Core 1.0 §3.1.2.6 consent_required when prompt=none.

public record ConsentRequired : Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse, System.IEquatable<Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.ConsentRequired>

Inheritance System.ObjectAuthorizationResponse → ConsentRequired

Implements System.IEquatable<ConsentRequired>

Constructors

ConsentRequired(AuthorizationRequest, AuthSession, ConsentDefinition) Constructor

Outcome signalling that the user is authenticated but has not yet granted every scope or resource the client is asking for, so the host must show its consent UI for the deltas in RequiredUserConsents. Maps to OpenID Connect Core 1.0 §3.1.2.6 consent_required when prompt=none.

public ConsentRequired(Abblix.Oidc.Server.Model.AuthorizationRequest Model, Abblix.Oidc.Server.Features.UserAuthentication.AuthSession AuthSession, Abblix.Oidc.Server.Features.Consents.ConsentDefinition RequiredUserConsents);

Parameters

Model AuthorizationRequest

The authorization request that produced the pending-consent state.

AuthSession AuthSession

The user's current authenticated session.

RequiredUserConsents ConsentDefinition

The scopes and resources that are still missing approval; everything not listed here is already granted.

Properties

ConsentRequired.AuthSession Property

The user's current authenticated session.

public Abblix.Oidc.Server.Features.UserAuthentication.AuthSession AuthSession { get; init; }

Property Value

AuthSession

ConsentRequired.RequiredUserConsents Property

The scopes and resources that are still missing approval; everything not listed here is already granted.

public Abblix.Oidc.Server.Features.Consents.ConsentDefinition RequiredUserConsents { get; init; }

Property Value

ConsentDefinition