TokenCredentialOptions Class

Definition

Options to configure requests made to the OAUTH identity service.

public class TokenCredentialOptions : Azure.Core.ClientOptions
type TokenCredentialOptions = class
    inherit ClientOptions
Public Class TokenCredentialOptions
Inherits ClientOptions
Inheritance
System.Object
TokenCredentialOptions
Derived

Constructors

TokenCredentialOptions()

Creates an instance of TokenCredentialOptions with default settings.

Properties

AllowMultiTenantAuthentication

If true, enables the credential to fetch tokens for any tenants the user or multi-tenant application registration is a member of. Otherwise the credential will only acquire tokens from the tenant configured when the credential was constructed.

AuthorityHost

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

Diagnostics

Gets the client diagnostic options.

(Inherited from ClientOptions)
Retry

Gets the client retry options.

(Inherited from ClientOptions)
Transport

The HttpPipelineTransport to be used for this client. Defaults to an instance of HttpClientTransport.

(Inherited from ClientOptions)

Methods

AddPolicy(HttpPipelinePolicy, HttpPipelinePosition)

Adds an HttpPipeline policy into the client pipeline. The position of policy in the pipeline is controlled by position parameter. If you want the policy to execute once per client request use PerCall otherwise use PerRetry to run the policy for every retry. Note that the same instance of policy would be added to all pipelines of client constructed using this ClientOptions object.

(Inherited from ClientOptions)

Applies to