gnodet-bot commented on code in PR #31053:
URL: https://github.com/apache/camel/pull/31053#discussion_r4723451556


##########
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:
   💡 **Doc nit:** The `credentialType` description is a 70-word run-on sentence 
with nested `else`-chains and passive voice ("is kept"). Hard to parse at a 
glance. The fix covers lines 62–66 (the added portion); sentences 1–3 (lines 
60–61, unchanged) can stay.
   
   ```suggestion
                               + " DefaultAzureCredential of the Azure Identity 
library (the tokenCredential option when it is"
                               + " set, otherwise a new one). Auto-detection 
when not set: TOKEN_CREDENTIAL when tokenCredential"
                               + " is not a DefaultAzureCredential, 
AZURE_IDENTITY when it is, ACCESS_KEY when accessKey or"
                               + " azureKeyCredential is set. An explicit 
TOKEN_CREDENTIAL or AZURE_IDENTITY is not overridden.")
   ```



-- 
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