Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
Unless I misunderstand something, if you choose to use AZURE_IDENTITY as the credentialType option, then there should be no need to supply either a sharedAccessName or sharedAccessKey. Those are only required when the component automatically builds a connection string (E.g CONNECTION_STRING credentialType option).
But when AZURE_IDENTITY is used, you get a validation error:
Caused by: java.lang.IllegalArgumentException: Azure EventHubs SharedAccessName/SharedAccessKey, ProducerAsyncClient, ConnectionString or TokenCredential must be specified. at org.apache.camel.component.azure.eventhubs.EventHubsComponent.validateConfigurations(EventHubsComponent.java:82)
I think we can skip this validation for AZURE_IDENTITY, given that all of the authentication info should get discovered by the azure-identity internals.
Attachments
Issue Links
- links to