#### [Abblix\.Oidc\.Server\.MinimalApi](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi 'index')
### [Abblix\.Oidc\.Server\.MinimalApi\.Formatters](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi/Abblix.Oidc.Server.MinimalApi.Formatters 'Abblix\.Oidc\.Server\.MinimalApi\.Formatters')

## IntrospectionResponseFormatter Class

Formats introspection results as [Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult '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\.

```csharp
public class IntrospectionResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IIntrospectionResponseFormatter
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → IntrospectionResponseFormatter

Implements [IIntrospectionResponseFormatter](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi/Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IIntrospectionResponseFormatter 'Abblix\.Oidc\.Server\.MinimalApi\.Formatters\.Interfaces\.IIntrospectionResponseFormatter')
### Constructors

## IntrospectionResponseFormatter\(IIssuerProvider, IClientJwtFormatter, TimeProvider, IOptionsSnapshot\<OidcOptions\>, IHttpContextAccessor\) Constructor {#Abblix.Oidc.Server.MinimalApi.Formatters.IntrospectionResponseFormatter.IntrospectionResponseFormatter(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider,Abblix.Oidc.Server.Features.Tokens.Formatters.IClientJwtFormatter,System.TimeProvider,Microsoft.Extensions.Options.IOptionsSnapshot_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Microsoft.AspNetCore.Http.IHttpContextAccessor)}

Formats introspection results as [Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult '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\.

```csharp
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](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Issuer.IIssuerProvider 'Abblix\.Oidc\.Server\.Features\.Issuer\.IIssuerProvider') {#Abblix.Oidc.Server.MinimalApi.Formatters.IntrospectionResponseFormatter.IntrospectionResponseFormatter(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider,Abblix.Oidc.Server.Features.Tokens.Formatters.IClientJwtFormatter,System.TimeProvider,Microsoft.Extensions.Options.IOptionsSnapshot_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Microsoft.AspNetCore.Http.IHttpContextAccessor).issuerProvider}

###### `clientJwtFormatter` [IClientJwtFormatter](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Tokens.Formatters.IClientJwtFormatter 'Abblix\.Oidc\.Server\.Features\.Tokens\.Formatters\.IClientJwtFormatter') {#Abblix.Oidc.Server.MinimalApi.Formatters.IntrospectionResponseFormatter.IntrospectionResponseFormatter(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider,Abblix.Oidc.Server.Features.Tokens.Formatters.IClientJwtFormatter,System.TimeProvider,Microsoft.Extensions.Options.IOptionsSnapshot_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Microsoft.AspNetCore.Http.IHttpContextAccessor).clientJwtFormatter}

###### `clock` [System\.TimeProvider](https://learn.microsoft.com/en-us/dotnet/api/system.timeprovider 'System\.TimeProvider') {#Abblix.Oidc.Server.MinimalApi.Formatters.IntrospectionResponseFormatter.IntrospectionResponseFormatter(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider,Abblix.Oidc.Server.Features.Tokens.Formatters.IClientJwtFormatter,System.TimeProvider,Microsoft.Extensions.Options.IOptionsSnapshot_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Microsoft.AspNetCore.Http.IHttpContextAccessor).clock}

###### `options` [Microsoft\.Extensions\.Options\.IOptionsSnapshot&lt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.options.ioptionssnapshot-1 'Microsoft\.Extensions\.Options\.IOptionsSnapshot\`1')[OidcOptions](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.OidcOptions 'Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.options.ioptionssnapshot-1 'Microsoft\.Extensions\.Options\.IOptionsSnapshot\`1') {#Abblix.Oidc.Server.MinimalApi.Formatters.IntrospectionResponseFormatter.IntrospectionResponseFormatter(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider,Abblix.Oidc.Server.Features.Tokens.Formatters.IClientJwtFormatter,System.TimeProvider,Microsoft.Extensions.Options.IOptionsSnapshot_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Microsoft.AspNetCore.Http.IHttpContextAccessor).options}

###### `httpContextAccessor` [Microsoft\.AspNetCore\.Http\.IHttpContextAccessor](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.ihttpcontextaccessor 'Microsoft\.AspNetCore\.Http\.IHttpContextAccessor') {#Abblix.Oidc.Server.MinimalApi.Formatters.IntrospectionResponseFormatter.IntrospectionResponseFormatter(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider,Abblix.Oidc.Server.Features.Tokens.Formatters.IClientJwtFormatter,System.TimeProvider,Microsoft.Extensions.Options.IOptionsSnapshot_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Microsoft.AspNetCore.Http.IHttpContextAccessor).httpContextAccessor}
### Methods

## IntrospectionResponseFormatter\.FormatResponseAsync\(IntrospectionRequest, Result\<IntrospectionSuccess,OidcError\>\) Method {#Abblix.Oidc.Server.MinimalApi.Formatters.IntrospectionResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.IntrospectionRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.Introspection.Interfaces.IntrospectionSuccess,Abblix.Oidc.Server.Common.OidcError_)}

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

```csharp
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](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Model.IntrospectionRequest 'Abblix\.Oidc\.Server\.Model\.IntrospectionRequest') {#Abblix.Oidc.Server.MinimalApi.Formatters.IntrospectionResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.IntrospectionRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.Introspection.Interfaces.IntrospectionSuccess,Abblix.Oidc.Server.Common.OidcError_).request}

###### `response` [Abblix\.Utils\.Result&lt;](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2')[IntrospectionSuccess](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Introspection.Interfaces.IntrospectionSuccess 'Abblix\.Oidc\.Server\.Endpoints\.Introspection\.Interfaces\.IntrospectionSuccess')[,](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2')[OidcError](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.OidcError 'Abblix\.Oidc\.Server\.Common\.OidcError')[&gt;](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2') {#Abblix.Oidc.Server.MinimalApi.Formatters.IntrospectionResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.IntrospectionRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.Introspection.Interfaces.IntrospectionSuccess,Abblix.Oidc.Server.Common.OidcError_).response}

Implements [FormatResponseAsync\(IntrospectionRequest, Result&lt;IntrospectionSuccess,OidcError&gt;\)](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi/Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IIntrospectionResponseFormatter#Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IIntrospectionResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.IntrospectionRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.Introspection.Interfaces.IntrospectionSuccess,Abblix.Oidc.Server.Common.OidcError_) 'Abblix\.Oidc\.Server\.MinimalApi\.Formatters\.Interfaces\.IIntrospectionResponseFormatter\.FormatResponseAsync\(Abblix\.Oidc\.Server\.Model\.IntrospectionRequest, Abblix\.Utils\.Result\<Abblix\.Oidc\.Server\.Endpoints\.Introspection\.Interfaces\.IntrospectionSuccess,Abblix\.Oidc\.Server\.Common\.OidcError\>\)')

#### Returns
[System\.Threading\.Tasks\.Task&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')[Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')
