Class AzureIdentityAuthenticationProvider
java.lang.Object
com.microsoft.kiota.authentication.BaseBearerTokenAuthenticationProvider
com.microsoft.graph.core.authentication.AzureIdentityAuthenticationProvider
- All Implemented Interfaces:
com.microsoft.kiota.authentication.AuthenticationProvider
public class AzureIdentityAuthenticationProvider
extends com.microsoft.kiota.authentication.BaseBearerTokenAuthenticationProvider
Implementation of Authentication provider for Azure Identity with Microsoft Graph defaults
-
Constructor Summary
ConstructorsConstructorDescriptionAzureIdentityAuthenticationProvider(com.azure.core.credential.TokenCredential tokenCredential, String[] allowedHosts, com.microsoft.kiota.authentication.ObservabilityOptions observabilityOptions, boolean isCaeEnabled, String... scopes) Creates a new instance of AzureIdentityAuthenticationProvider.AzureIdentityAuthenticationProvider(com.azure.core.credential.TokenCredential tokenCredential, String[] allowedHosts, com.microsoft.kiota.authentication.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, getAccessTokenProvider
-
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 com.microsoft.kiota.authentication.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 com.microsoft.kiota.authentication.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- Whether to enable Continuous Access Evaluation, defaults to true.scopes- The scopes to request access tokens for.
-