BearerTokenPolicy Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| BearerTokenPolicy(AuthenticationTokenProvider, IEnumerable<IReadOnlyDictionary<String,Object>>) |
Creates a new instance of BearerTokenPolicy. |
| BearerTokenPolicy(AuthenticationTokenProvider, String) |
Creates a new instance of BearerTokenPolicy. |
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
- tokenProvider
- AuthenticationTokenProvider
- 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
- tokenProvider
- AuthenticationTokenProvider
- scope
- String
The scope to be used for authentication requests made by the tokenProvider.