Skip to content

IUserInfoResponseFormatter Interface

Formats the result of an OpenID Connect UserInfo request into an Microsoft.AspNetCore.Http.IResult.

C#
public interface IUserInfoResponseFormatter

Derived
UserInfoResponseFormatter

Methods

IUserInfoResponseFormatter.FormatResponseAsync(UserInfoRequest, Result<UserInfoFoundResponse,OidcError>) Method

Formats the UserInfo result (plain JSON, or a signed JWT when the client registered a userinfo_signed_response_alg, on success; the OAuth error otherwise).

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

Parameters

request UserInfoRequest
response Abblix.Utils.Result<UserInfoFoundResponse,OidcError>

Returns

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