Class AuthenticationRecord
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
- See Also
ClientId
The client id of the application which performed the original authentication
public string ClientId { get; }
Property Value
- See Also
HomeAccountId
A unique identifier of the account.
public string HomeAccountId { get; }
Property Value
- See Also
TenantId
The tenant the account should authenticate in.
public string TenantId { get; }
Property Value
- See Also
Username
The user principal or service principal name of the account.
public string Username { get; }
Property Value
- See Also
Methods
Deserialize(Stream, CancellationToken)
Deserializes the AuthenticationRecord from the specified Stream.
public static AuthenticationRecord Deserialize(Stream stream, CancellationToken cancellationToken = default)
Parameters
stream
StreamThe Stream from which the serialized AuthenticationRecord will be read.
cancellationToken
CancellationTokenA CancellationToken controlling the request lifetime.
Returns
- See Also
DeserializeAsync(Stream, CancellationToken)
Deserializes the AuthenticationRecord from the specified Stream.
public static Task<AuthenticationRecord> DeserializeAsync(Stream stream, CancellationToken cancellationToken = default)
Parameters
stream
StreamThe Stream from which the serialized AuthenticationRecord will be read.
cancellationToken
CancellationTokenA CancellationToken controlling the request lifetime.
Returns
- See Also
Serialize(Stream, CancellationToken)
Serializes the AuthenticationRecord to the specified Stream.
public void Serialize(Stream stream, CancellationToken cancellationToken = default)
Parameters
stream
StreamThe Stream which the serialized AuthenticationRecord will be written to.
cancellationToken
CancellationTokenA 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
StreamThe Stream to which the serialized AuthenticationRecord will be written.
cancellationToken
CancellationTokenA CancellationToken controlling the request lifetime.
Returns
- See Also