<PackageReference Include="Microsoft.Identity.Client" Version="4.83.1" />

Microsoft.Identity.Client.Extensibility.OnBeforeTokenRequestData

public sealed class OnBeforeTokenRequestData
Authentication request details
public IDictionary<string, string> BodyParameters { get; }

Parameters which will be sent in the request body, as POST parameters.

The cancellation token associated with the request

public IDictionary<string, string> Headers { get; }

Headers which will be sent with the request.

public Uri RequestUri { get; set; }

The token endpoint, including any query parameters, where the request is being sent to.

public OnBeforeTokenRequestData(IDictionary<string, string> bodyParameters, IDictionary<string, string> headers, Uri requestUri, CancellationToken cancellationToken)

Constructor.