Show / Hide Table of Contents

Class AuthenticationRecord

Account information relating to an authentication request.

Inheritance
System.Object
AuthenticationRecord
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Identity.dll
Syntax
public class AuthenticationRecord

Properties

Authority

The authority host used to authenticate the account.

Declaration
public string Authority { get; }
Property Value
System.String

ClientId

The client id of the application which performed the original authentication

Declaration
public string ClientId { get; }
Property Value
System.String

HomeAccountId

A unique identifier of the account.

Declaration
public string HomeAccountId { get; }
Property Value
System.String

TenantId

The tenant the account should authenticate in.

Declaration
public string TenantId { get; }
Property Value
System.String

Username

The user principal or service principal name of the account.

Declaration
public string Username { get; }
Property Value
System.String

Methods

Deserialize(Stream, CancellationToken)

Deserializes the AuthenticationRecord from the specified System.IO.Stream.

Declaration
public static Azure.Identity.AuthenticationRecord Deserialize (System.IO.Stream stream, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.IO.Stream stream

The System.IO.Stream from which the serialized AuthenticationRecord will be read.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken controlling the request lifetime.

Returns
AuthenticationRecord

DeserializeAsync(Stream, CancellationToken)

Deserializes the AuthenticationRecord from the specified System.IO.Stream.

Declaration
[System.Diagnostics.DebuggerStepThrough]
public static System.Threading.Tasks.Task<Azure.Identity.AuthenticationRecord> DeserializeAsync (System.IO.Stream stream, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.IO.Stream stream

The System.IO.Stream from which the serialized AuthenticationRecord will be read.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken controlling the request lifetime.

Returns
System.Threading.Tasks.Task<AuthenticationRecord>

Serialize(Stream, CancellationToken)

Serializes the AuthenticationRecord to the specified System.IO.Stream.

Declaration
public void Serialize (System.IO.Stream stream, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.IO.Stream stream

The System.IO.Stream which the serialized AuthenticationRecord will be written to.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken controlling the request lifetime.

SerializeAsync(Stream, CancellationToken)

Serializes the AuthenticationRecord to the specified System.IO.Stream.

Declaration
[System.Diagnostics.DebuggerStepThrough]
public System.Threading.Tasks.Task SerializeAsync (System.IO.Stream stream, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.IO.Stream stream

The System.IO.Stream to which the serialized AuthenticationRecord will be written.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken controlling the request lifetime.

Returns
System.Threading.Tasks.Task

See Also

Back to top Azure SDK for .NET