<PackageReference Include="Microsoft.Identity.Client" Version="4.84.2-preview4-GetManagedIdentityCapabilitiesAsync" />

Microsoft.Identity.Client.UserAssertion

public sealed class UserAssertion
Type containing an assertion representing a user's credentials. This type is used in the On-Behalf-Of flow in confidential client applications, enabling a web API to request a token for another downstream API in the name of the user whose credentials are held by this UserAssertion. See https://aka.ms/msal-net-on-behalf-of
public string Assertion { get; }

Gets the assertion.

public string AssertionType { get; }

Gets the assertion type.

public UserAssertion(string jwtBearerToken)

Constructor from a JWT assertion. For other assertion types (SAML), use the other constructor #ctor

public UserAssertion(string assertion, string assertionType)

Constructor of a UserAssertion specifying the assertionType in addition to the assertion