Skip to content

IBackChannelAuthenticationResponseFormatter Interface

Formats the result of a CIBA backchannel authentication request into an Microsoft.AspNetCore.Http.IResult.

C#
public interface IBackChannelAuthenticationResponseFormatter

Derived
BackChannelAuthenticationResponseFormatter

Methods

IBackChannelAuthenticationResponseFormatter.FormatResponseAsync(BackChannelAuthenticationRequest, ClientRequest, Result<BackChannelAuthenticationSuccess,OidcError>) Method

Formats the backchannel authentication result: a JSON success response, or the RFC-compliant OAuth error (401 with a WWW-Authenticate challenge, 403, or 400 depending on the failure).

C#
System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult> FormatResponseAsync(Abblix.Oidc.Server.Model.BackChannelAuthenticationRequest request, Abblix.Oidc.Server.Model.ClientRequest clientRequest, Abblix.Utils.Result<Abblix.Oidc.Server.Model.BackChannelAuthenticationSuccess,Abblix.Oidc.Server.Common.OidcError> response);

Parameters

request BackChannelAuthenticationRequest

The original backchannel authentication request that triggered the response.

clientRequest ClientRequest

The client request, used to match the WWW-Authenticate scheme on a 401 per RFC 6749 §5.2.

response Abblix.Utils.Result<BackChannelAuthenticationSuccess,OidcError>

The backchannel authentication result to format.

Returns

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