<PackageReference Include="Azure.Core" Version="1.53.0" />

Azure.Identity.AuthenticationRecord

public class AuthenticationRecord
Account information relating to an authentication request.
public string Authority { get; }

The authority host used to authenticate the account.

public string ClientId { get; }

The client id of the application which performed the original authentication

public string HomeAccountId { get; }

A unique identifier of the account.

public string TenantId { get; }

The tenant the account should authenticate in.

public string Username { get; }

The user principal or service principal name of the account.

public static AuthenticationRecord Deserialize(Stream stream, CancellationToken cancellationToken = default)

Deserializes the AuthenticationRecord from the specified Stream.

public static Task<AuthenticationRecord> DeserializeAsync(Stream stream, CancellationToken cancellationToken = default)

Deserializes the AuthenticationRecord from the specified Stream.

public void Serialize(Stream stream, CancellationToken cancellationToken = default)

Serializes the AuthenticationRecord to the specified Stream.

public Task SerializeAsync(Stream stream, CancellationToken cancellationToken = default)

Serializes the AuthenticationRecord to the specified Stream.