BearerTokenAuthenticationPolicy Constructors

Definition

Overloads

Name Description
BearerTokenAuthenticationPolicy(TokenCredential, IEnumerable<String>)

Creates a new instance of BearerTokenAuthenticationPolicy using provided token credential and scopes to authenticate for.

BearerTokenAuthenticationPolicy(TokenCredential, String)

Creates a new instance of BearerTokenAuthenticationPolicy using provided token credential and scope to authenticate for.

BearerTokenAuthenticationPolicy(TokenCredential, IEnumerable<String>, HttpPipelineTransportOptions)

Creates a new instance of BearerTokenAuthenticationPolicy using provided token credential and scopes to authenticate for.

BearerTokenAuthenticationPolicy(TokenCredential, String, HttpPipelineTransportOptions)

Creates a new instance of BearerTokenAuthenticationPolicy using provided token credential and scope to authenticate for.

BearerTokenAuthenticationPolicy(TokenCredential, IEnumerable<String>)

Source:
BearerTokenAuthenticationPolicy.cs

Creates a new instance of BearerTokenAuthenticationPolicy using provided token credential and scopes to authenticate for.

public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, System.Collections.Generic.IEnumerable<string> scopes);
new Azure.Core.Pipeline.BearerTokenAuthenticationPolicy : Azure.Core.TokenCredential * seq<string> -> Azure.Core.Pipeline.BearerTokenAuthenticationPolicy
Public Sub New (credential As TokenCredential, scopes As IEnumerable(Of String))

Parameters

credential
TokenCredential

The token credential to use for authentication.

scopes
IEnumerable<String>

Scopes to be included in acquired tokens.

Exceptions

When credential or scopes is null.

Applies to

BearerTokenAuthenticationPolicy(TokenCredential, String)

Source:
BearerTokenAuthenticationPolicy.cs

Creates a new instance of BearerTokenAuthenticationPolicy using provided token credential and scope to authenticate for.

public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, string scope);
new Azure.Core.Pipeline.BearerTokenAuthenticationPolicy : Azure.Core.TokenCredential * string -> Azure.Core.Pipeline.BearerTokenAuthenticationPolicy
Public Sub New (credential As TokenCredential, scope As String)

Parameters

credential
TokenCredential

The token credential to use for authentication.

scope
String

The scope to be included in acquired tokens.

Applies to

BearerTokenAuthenticationPolicy(TokenCredential, IEnumerable<String>, HttpPipelineTransportOptions)

Source:
BearerTokenAuthenticationPolicy.cs

Creates a new instance of BearerTokenAuthenticationPolicy using provided token credential and scopes to authenticate for.

public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, System.Collections.Generic.IEnumerable<string> scopes, Azure.Core.Pipeline.HttpPipelineTransportOptions transportOptions);
new Azure.Core.Pipeline.BearerTokenAuthenticationPolicy : Azure.Core.TokenCredential * seq<string> * Azure.Core.Pipeline.HttpPipelineTransportOptions -> Azure.Core.Pipeline.BearerTokenAuthenticationPolicy
Public Sub New (credential As TokenCredential, scopes As IEnumerable(Of String), transportOptions As HttpPipelineTransportOptions)

Parameters

credential
TokenCredential

The token credential to use for authentication.

scopes
IEnumerable<String>

Scopes to be included in acquired tokens.

transportOptions
HttpPipelineTransportOptions

The HttpPipelineTransportOptions to use as a base when updating transport options. If provided, a clone of this instance will be used when updating the transport with new client certificates.

Exceptions

When credential or scopes is null.

Applies to

BearerTokenAuthenticationPolicy(TokenCredential, String, HttpPipelineTransportOptions)

Source:
BearerTokenAuthenticationPolicy.cs

Creates a new instance of BearerTokenAuthenticationPolicy using provided token credential and scope to authenticate for.

public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, string scope, Azure.Core.Pipeline.HttpPipelineTransportOptions transportOptions);
new Azure.Core.Pipeline.BearerTokenAuthenticationPolicy : Azure.Core.TokenCredential * string * Azure.Core.Pipeline.HttpPipelineTransportOptions -> Azure.Core.Pipeline.BearerTokenAuthenticationPolicy
Public Sub New (credential As TokenCredential, scope As String, transportOptions As HttpPipelineTransportOptions)

Parameters

credential
TokenCredential

The token credential to use for authentication.

scope
String

The scope to be included in acquired tokens.

transportOptions
HttpPipelineTransportOptions

The HttpPipelineTransportOptions to use as a base when updating transport options. If provided, a clone of this instance will be used when updating the transport with new client certificates.

Applies to