BearerTokenAuthenticationPolicy 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
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>)
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)
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
Azure SDK for .NET