Table of Contents

Class TokenCredentialOptions

Namespace
Azure.Identity
Assembly
Azure.Identity.dll

Options to configure requests made to the OAUTH identity service.

public class TokenCredentialOptions : ClientOptions
Inheritance
TokenCredentialOptions
Derived

Constructors

TokenCredentialOptions()

Constructs a new TokenCredentialOptions instance.

public TokenCredentialOptions()

Properties

AuthorityHost

The host of the Microsoft Entra authority. The default is https://login.microsoftonline.com/. For well known authority hosts for Azure cloud instances see AzureAuthorityHosts.

public Uri AuthorityHost { get; set; }

Property Value

Uri

Diagnostics

Gets the credential diagnostic options.

public TokenCredentialDiagnosticsOptions Diagnostics { get; }

Property Value

TokenCredentialDiagnosticsOptions

IsUnsafeSupportLoggingEnabled

Gets or sets value indicating if ETW logging that contains potentially sensitive content should be logged. Setting this property to true will not disable redaction of Azure.Core.Request Content. To enable logging of sensitive Azure.Core.Request.Content the Azure.Core.DiagnosticsOptions.IsLoggingContentEnabled property must be set to true. Setting this property to true equates to passing 'true' for the enablePiiLogging parameter to the 'WithLogging' method on the MSAL client builder.

public bool IsUnsafeSupportLoggingEnabled { get; set; }

Property Value

bool