Skip to content

IntrospectionResponseFormatter Class

Formats introspection results as Microsoft.AspNetCore.Http.IResult: a plain RFC 7662 JSON document, or, when the client registered introspection_signed_response_alg and requests it via Accept: application/token-introspection+jwt, a signed/encrypted JWT (RFC 9701); the OAuth error otherwise.

C#
public class IntrospectionResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IIntrospectionResponseFormatter

Inheritance System.Object → IntrospectionResponseFormatter

Implements IIntrospectionResponseFormatter

Constructors

IntrospectionResponseFormatter(IIssuerProvider, IClientJwtFormatter, TimeProvider, IOptionsSnapshot<OidcOptions>, IHttpContextAccessor) Constructor

Formats introspection results as Microsoft.AspNetCore.Http.IResult: a plain RFC 7662 JSON document, or, when the client registered introspection_signed_response_alg and requests it via Accept: application/token-introspection+jwt, a signed/encrypted JWT (RFC 9701); the OAuth error otherwise.

C#
public IntrospectionResponseFormatter(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider issuerProvider, Abblix.Oidc.Server.Features.Tokens.Formatters.IClientJwtFormatter clientJwtFormatter, System.TimeProvider clock, Microsoft.Extensions.Options.IOptionsSnapshot<Abblix.Oidc.Server.Common.Configuration.OidcOptions> options, Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor);

Parameters

issuerProvider IIssuerProvider
clientJwtFormatter IClientJwtFormatter
clock System.TimeProvider
options Microsoft.Extensions.Options.IOptionsSnapshot<OidcOptions>
httpContextAccessor Microsoft.AspNetCore.Http.IHttpContextAccessor

Methods

IntrospectionResponseFormatter.FormatResponseAsync(IntrospectionRequest, Result<IntrospectionSuccess,OidcError>) Method

Formats the introspection result (RFC 7662 JSON or RFC 9701 JWT on success, OAuth error otherwise).

C#
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult> FormatResponseAsync(Abblix.Oidc.Server.Model.IntrospectionRequest request, Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.Introspection.Interfaces.IntrospectionSuccess,Abblix.Oidc.Server.Common.OidcError> response);

Parameters

request IntrospectionRequest
response Abblix.Utils.Result<IntrospectionSuccess,OidcError>

Implements FormatResponseAsync(IntrospectionRequest, Result<IntrospectionSuccess,OidcError>)

Returns

System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult>