Freigeben über


BearerTokenPolicy Constructors

Definition

Overloads

BearerTokenPolicy(AuthenticationTokenProvider, IEnumerable<IReadOnlyDictionary<String,Object>>)

Source:
BearerTokenPolicy.cs
Source:
BearerTokenPolicy.cs

Creates a new instance of BearerTokenPolicy.

public BearerTokenPolicy(System.ClientModel.AuthenticationTokenProvider tokenProvider, System.Collections.Generic.IEnumerable<System.Collections.Generic.IReadOnlyDictionary<string,object>> contexts);
new System.ClientModel.Primitives.BearerTokenPolicy : System.ClientModel.AuthenticationTokenProvider * seq<System.Collections.Generic.IReadOnlyDictionary<string, obj>> -> System.ClientModel.Primitives.BearerTokenPolicy
Public Sub New (tokenProvider As AuthenticationTokenProvider, contexts As IEnumerable(Of IReadOnlyDictionary(Of String, Object)))

Parameters

contexts
IEnumerable<IReadOnlyDictionary<String,Object>>

The authentication flow contexts supported by the client. This would typically be provided by generated code.

Applies to

BearerTokenPolicy(AuthenticationTokenProvider, String)

Source:
BearerTokenPolicy.cs
Source:
BearerTokenPolicy.cs

Creates a new instance of BearerTokenPolicy.

public BearerTokenPolicy(System.ClientModel.AuthenticationTokenProvider tokenProvider, string scope);
new System.ClientModel.Primitives.BearerTokenPolicy : System.ClientModel.AuthenticationTokenProvider * string -> System.ClientModel.Primitives.BearerTokenPolicy
Public Sub New (tokenProvider As AuthenticationTokenProvider, scope As String)

Parameters

scope
String

The scope to be used for authentication requests made by the tokenProvider.

Applies to