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 Summary
ConstructorsConstructorDescriptionAzureIdentityAuthenticationProvider(com.azure.core.credential.TokenCredential tokenCredential, String[] allowedHosts, ObservabilityOptions observabilityOptions, boolean isCaeEnabled, String... scopes) Creates a new instance of AzureIdentityAuthenticationProvider.AzureIdentityAuthenticationProvider(com.azure.core.credential.TokenCredential tokenCredential, String[] allowedHosts, ObservabilityOptions observabilityOptions, String... scopes) Creates a new instance of AzureIdentityAuthenticationProvider.AzureIdentityAuthenticationProvider(com.azure.core.credential.TokenCredential tokenCredential, String[] allowedHosts, String... scopes) Creates a new instance of AzureIdentityAuthenticationProvider. -
Method Summary
Methods inherited from class com.microsoft.kiota.authentication.BaseBearerTokenAuthenticationProvider
authenticateRequest
-
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.
-