Skip to content

UserInfoRequest Class

The OpenID Connect UserInfo request, bound from a GET query or a POST form. The bound properties, BindAsync (which reads query-or-form) and the projection onto the core model are generated from UserInfoRequest by the Minimal API model source generator.

C#
public record UserInfoRequest : System.IEquatable<Abblix.Oidc.Server.MinimalApi.Model.UserInfoRequest>

Inheritance System.Object → UserInfoRequest

Implements System.IEquatable<UserInfoRequest>

Properties

UserInfoRequest.AccessToken Property

The access token that authorizes the request to retrieve user information. This token is typically obtained during the authentication process and is used to access protected user data.

C#
public string? AccessToken { get; init; }

Property Value

System.String

Methods

UserInfoRequest.BindAsync(HttpContext) Method

Binds the model from the request's form, query, headers and TLS connection.

C#
public static System.Threading.Tasks.ValueTask<Abblix.Oidc.Server.MinimalApi.Model.UserInfoRequest?> BindAsync(Microsoft.AspNetCore.Http.HttpContext context);

Parameters

context Microsoft.AspNetCore.Http.HttpContext

Returns

System.Threading.Tasks.ValueTask<UserInfoRequest>

Operators

UserInfoRequest.implicit operator UserInfoRequest(UserInfoRequest) Operator

Projects the transport-bound model onto its core counterpart.

C#
public static Abblix.Oidc.Server.Model.UserInfoRequest implicit operator Abblix.Oidc.Server.Model.UserInfoRequest(Abblix.Oidc.Server.MinimalApi.Model.UserInfoRequest request);

Parameters

request UserInfoRequest

Returns

UserInfoRequest