davsclaus commented on code in PR #31053:
URL: https://github.com/apache/camel/pull/31053#discussion_r4723705811


##########
components/camel-azure/camel-azure-eventgrid/src/main/java/org/apache/camel/component/azure/eventgrid/EventGridConfiguration.java:
##########
@@ -50,15 +50,20 @@ public class EventGridConfiguration implements Cloneable {
 
     @UriParam(label = "security", security = "secret",
               description = "The com.azure.core.credential.TokenCredential 
that authenticates the producer with Microsoft"
-                            + " Entra ID. When it is set, the accessKey and 
azureKeyCredential options are not used.")
+                            + " Entra ID, such as a DefaultAzureCredential 
built with a managed identity client id or a"
+                            + " tenant id; this instance is used as it is, 
also with credentialType AZURE_IDENTITY. When it"
+                            + " is set, the accessKey and azureKeyCredential 
options are not used.")
     @Metadata(autowired = true)
     private TokenCredential tokenCredential;
 
     @UriParam(label = "security", enums = 
"ACCESS_KEY,AZURE_IDENTITY,TOKEN_CREDENTIAL", defaultValue = "ACCESS_KEY",
               description = "How the producer authenticates: ACCESS_KEY with 
the azureKeyCredential or accessKey option,"
                             + " TOKEN_CREDENTIAL with the tokenCredential 
option, or AZURE_IDENTITY with a"
-                            + " DefaultAzureCredential of the Azure Identity 
library. When one of these credential options is"
-                            + " set, the component chooses the type from it, 
so set this option only for AZURE_IDENTITY.")
+                            + " DefaultAzureCredential of the Azure Identity 
library (the tokenCredential option when it is"
+                            + " set, else a new one). When tokenCredential is 
set, an explicit TOKEN_CREDENTIAL or"
+                            + " AZURE_IDENTITY is kept, else the type is 
AZURE_IDENTITY for a DefaultAzureCredential and"
+                            + " TOKEN_CREDENTIAL for another credential; when 
accessKey or azureKeyCredential is set, it is"
+                            + " ACCESS_KEY.")

Review Comment:
   Fixed in 18cf09df3884: the added part is now three short sentences in active 
voice ("Camel uses ..."). I kept the condition "left at ACCESS_KEY" instead of 
"when not set", because the option defaults to ACCESS_KEY and an explicit 
TOKEN_CREDENTIAL or AZURE_IDENTITY is kept.
   
   _Claude Code on behalf of Claus Ibsen_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to