Provides a default TokenCredential authentication flow for applications that will be deployed to Azure. The following credential types if enabled will be tried, in order:
Consult the documentation of these credential types for more information on how they attempt authentication.DefaultAzureCredential
public class DefaultAzureCredential : Azure.Core.TokenCredential
public DefaultAzureCredential (Azure.Identity.DefaultAzureCredentialOptions options);
Creates an instance of the DefaultAzureCredential class.
public DefaultAzureCredential (bool includeInteractiveCredentials = false);
Boolean includeInteractiveCredentials Specifies whether credentials requiring user interaction will be included in the default authentication flow. |
public override Azure.Core.AccessToken GetToken (Azure.Core.TokenRequestContext requestContext, System.Threading.CancellationToken cancellationToken = null);
Azure.Core.TokenRequestContext requestContext The details of the authentication request. |
CancellationToken cancellationToken A CancellationToken controlling the request lifetime. |
[System.Diagnostics.DebuggerStepThrough] public override System.Threading.Tasks.ValueTask<Azure.Core.AccessToken> GetTokenAsync (Azure.Core.TokenRequestContext requestContext, System.Threading.CancellationToken cancellationToken = null);
Azure.Core.TokenRequestContext requestContext The details of the authentication request. |
CancellationToken cancellationToken A CancellationToken controlling the request lifetime. |
ncG1vNJzZmiZqqq%2Fpr%2FDpJuom6Njr627wWeaqKqVY8SqusOorqxmnprBcHDWnplonJ%2Bpu6bAjnqxrqqVY5alsc2toK2xX2Z7cXqPaJipoV92x7a%2BxGeAnZ2eqba1xY56sa6qlWOWpbHNraCtsV55sqet1KWrerKlp7KEvsSdnKesmZa5b7TTpqM%3D