<PackageReference Include="Microsoft.Identity.Client" Version="4.87.1-preview.2" />

Microsoft.Identity.Client.ManagedIdentity.ManagedIdentityResponse

public string AccessToken { get; set; }

The requested access token.

public string ClientId { get; set; }

A unique identifier generated by Azure AD for the Azure Resource.

public string ExpiresInRaw { get; set; }

public string ExpiresOn { get; set; }

The timespan when the access token expires.

public string ExpiresOnRaw { get; set; }

public string ObjectId { get; set; }

The object id of the user-assigned managed identity that issued the token, if the endpoint echoes it back.

public string Resource { get; set; }

The resource the access token was requested for.

public string ResourceId { get; }

The Azure resource id of the user-assigned managed identity that issued the token, if the endpoint echoes it back. Prefers the "msi_res_id" spelling that Azure Arc returns and falls back to "mi_res_id", so the value is deterministic regardless of the order the two fields appear in the JSON response.

public string ResourceIdMi { get; set; }

public string ResourceIdMsi { get; set; }

public string TokenType { get; set; }

The type of token returned by the Managed Identity endpoint.