Skip to main content

ValidIntrospectionRequest Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.Introspection.Interfaces

ValidIntrospectionRequest Class

Output of IIntrospectionRequestValidator handed to the processor: pairs the original request with either the parsed token (active branch) or a null token (inactive branch produced via InvalidToken(IntrospectionRequest, ClientInfo), used so token-level failures flow through the same processing path without disclosing why per RFC 7662 §2.2).

public record ValidIntrospectionRequest : System.IEquatable<Abblix.Oidc.Server.Endpoints.Introspection.Interfaces.ValidIntrospectionRequest>

Inheritance System.Object → ValidIntrospectionRequest

Implements System.IEquatable<ValidIntrospectionRequest>

Constructors

ValidIntrospectionRequest(IntrospectionRequest, ClientInfo, JsonWebToken) Constructor

Active-branch constructor: the token authenticated, was issued to this client and passed validation.

public ValidIntrospectionRequest(Abblix.Oidc.Server.Model.IntrospectionRequest model, Abblix.Oidc.Server.Features.ClientInformation.ClientInfo clientInfo, Abblix.Jwt.JsonWebToken token);

Parameters

model IntrospectionRequest

The introspection request model.

clientInfo ClientInfo

The authenticated client making the introspection request; it determines the response format (plain JSON vs. a signed/encrypted JWT per RFC 9701).

token JsonWebToken

The parsed JWT to be reported as active=true.

Properties

ValidIntrospectionRequest.ClientInfo Property

The authenticated client making the introspection request, used to select the response format (RFC 9701).

public Abblix.Oidc.Server.Features.ClientInformation.ClientInfo ClientInfo { get; }

Property Value

ClientInfo

ValidIntrospectionRequest.Model Property

The introspection request model.

public Abblix.Oidc.Server.Model.IntrospectionRequest Model { get; }

Property Value

IntrospectionRequest

ValidIntrospectionRequest.Token Property

The JSON Web Token to introspect.

public Abblix.Jwt.JsonWebToken? Token { get; }

Property Value

JsonWebToken

Methods

ValidIntrospectionRequest.InvalidToken(IntrospectionRequest, ClientInfo) Method

Creates a valid introspection request for an invalid token.

public static Abblix.Oidc.Server.Endpoints.Introspection.Interfaces.ValidIntrospectionRequest InvalidToken(Abblix.Oidc.Server.Model.IntrospectionRequest model, Abblix.Oidc.Server.Features.ClientInformation.ClientInfo clientInfo);

Parameters

model IntrospectionRequest

The introspection request model.

clientInfo ClientInfo

The authenticated client making the introspection request.

Returns

ValidIntrospectionRequest
A valid introspection request with the "active" field set to "false."

Remarks

See https://www.rfc-editor.org/rfc/rfc7662\#section-5.2