Skip to content

ReadClientResponseFormatter Class

Provides a response formatter for reading client responses.

C#
public class ReadClientResponseFormatter : Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IReadClientResponseFormatter

Inheritance System.Object → ReadClientResponseFormatter

Implements IReadClientResponseFormatter

Constructors

ReadClientResponseFormatter(IUriResolver) Constructor

Provides a response formatter for reading client responses.

C#
public ReadClientResponseFormatter(Abblix.Oidc.Server.Mvc.IUriResolver uriResolver);

Parameters

uriResolver IUriResolver

The URI resolver for generating client management URLs.

Methods

ReadClientResponseFormatter.FormatResponseAsync(ClientRequest, Result<ReadClientSuccessfulResponse,OidcError>) Method

Formats a response for reading a client asynchronously.

C#
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult> FormatResponseAsync(Abblix.Oidc.Server.Model.ClientRequest request, Abblix.Utils.Result<Abblix.Oidc.Server.Model.ReadClientSuccessfulResponse,Abblix.Oidc.Server.Common.OidcError> response);

Parameters

request ClientRequest

The client request.

response Abblix.Utils.Result<ReadClientSuccessfulResponse,OidcError>

The client response model.

Implements FormatResponseAsync(ClientRequest, Result<ReadClientSuccessfulResponse,OidcError>)

Returns

System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult>
A System.Threading.Tasks.Task representing the asynchronous operation, with the formatted response as an Microsoft.AspNetCore.Mvc.ActionResult.

Remarks

This method is used to format the response for reading a client. Depending on the response type, it creates different types of ActionResult to be returned to the client.