Class AzureIdentityAuthenticationProvider

java.lang.Object
com.microsoft.kiota.authentication.BaseBearerTokenAuthenticationProvider
com.microsoft.kiota.authentication.AzureIdentityAuthenticationProvider
All Implemented Interfaces:
com.microsoft.kiota.authentication.AuthenticationProvider

public class AzureIdentityAuthenticationProvider extends com.microsoft.kiota.authentication.BaseBearerTokenAuthenticationProvider
Implementation of AuthenticationProvider that supports implementations of TokenCredential from Azure.Identity.
  • Constructor Details

    • AzureIdentityAuthenticationProvider

      public AzureIdentityAuthenticationProvider(@Nonnull com.azure.core.credential.TokenCredential tokenCredential, @Nonnull String[] allowedHosts, @Nonnull String... scopes)
      Creates a new instance of AzureIdentityAuthenticationProvider.
      Parameters:
      tokenCredential - The Azure.Identity.TokenCredential implementation to use.
      allowedHosts - The list of allowed hosts for which to request access tokens.
      scopes - The scopes to request access tokens for.
    • AzureIdentityAuthenticationProvider

      public AzureIdentityAuthenticationProvider(@Nonnull com.azure.core.credential.TokenCredential tokenCredential, @Nonnull String[] allowedHosts, @Nullable ObservabilityOptions observabilityOptions, @Nonnull String... scopes)
      Creates a new instance of AzureIdentityAuthenticationProvider.
      Parameters:
      tokenCredential - The Azure.Identity.TokenCredential implementation to use.
      allowedHosts - The list of allowed hosts for which to request access tokens.
      observabilityOptions - The observability options to use.
      scopes - The scopes to request access tokens for.
    • AzureIdentityAuthenticationProvider

      public AzureIdentityAuthenticationProvider(@Nonnull com.azure.core.credential.TokenCredential tokenCredential, @Nonnull String[] allowedHosts, @Nullable ObservabilityOptions observabilityOptions, boolean isCaeEnabled, @Nonnull String... scopes)
      Creates a new instance of AzureIdentityAuthenticationProvider.
      Parameters:
      tokenCredential - The Azure.Identity.TokenCredential implementation to use.
      allowedHosts - The list of allowed hosts for which to request access tokens.
      observabilityOptions - The observability options to use.
      isCaeEnabled - A flag to enable or disable the Continuous Access Evaluation.
      scopes - The scopes to request access tokens for.