Table of Contents

Class AuthenticationRecord

Namespace
Azure.Identity
Assembly
Azure.Identity.dll

Account information relating to an authentication request.

public class AuthenticationRecord
Inheritance
AuthenticationRecord
Inherited Members

Properties

Authority

The authority host used to authenticate the account.

public string Authority { get; }

Property Value

string
See Also

ClientId

The client id of the application which performed the original authentication

public string ClientId { get; }

Property Value

string
See Also

HomeAccountId

A unique identifier of the account.

public string HomeAccountId { get; }

Property Value

string
See Also

TenantId

The tenant the account should authenticate in.

public string TenantId { get; }

Property Value

string
See Also

Username

The user principal or service principal name of the account.

public string Username { get; }

Property Value

string
See Also

Methods

Deserialize(Stream, CancellationToken)

Deserializes the AuthenticationRecord from the specified Stream.

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

Parameters

stream Stream

The Stream from which the serialized AuthenticationRecord will be read.

cancellationToken CancellationToken

A CancellationToken controlling the request lifetime.

Returns

AuthenticationRecord
See Also

DeserializeAsync(Stream, CancellationToken)

Deserializes the AuthenticationRecord from the specified Stream.

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

Parameters

stream Stream

The Stream from which the serialized AuthenticationRecord will be read.

cancellationToken CancellationToken

A CancellationToken controlling the request lifetime.

Returns

Task<AuthenticationRecord>
See Also

Serialize(Stream, CancellationToken)

Serializes the AuthenticationRecord to the specified Stream.

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

Parameters

stream Stream

The Stream which the serialized AuthenticationRecord will be written to.

cancellationToken CancellationToken

A CancellationToken controlling the request lifetime.

See Also

SerializeAsync(Stream, CancellationToken)

Serializes the AuthenticationRecord to the specified Stream.

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

Parameters

stream Stream

The Stream to which the serialized AuthenticationRecord will be written.

cancellationToken CancellationToken

A CancellationToken controlling the request lifetime.

Returns

Task
See Also

See Also