[BUG] MSAL information loged when Dependcy injecting EmailClient #47905
Labels
Client
This issue points to a problem in the data-plane of the library.
Communication - Email
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
issue-addressed
Workflow: The Azure SDK team believes it to be addressed and ready to close.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Library name and version
Azure.Communication.Email v1.01
Describe the bug
Injecting the EmailClient causes logs from MSAL for graph packages to be logged.
Expected behavior
MSAL logs from other graph packages should not be logged.
Actual behavior
MSAL logs are logged.
[2025-01-20T20:20:35.882Z] False MSAL 4.66.2.0 MSAL.NetCore .NET 8.0.4 Microsoft Windows 10.0.22631 [2025-01-20 20:20:35Z - d6debb3b-3798-4d91-8e96-e541d41c3636]
[2025-01-20T20:20:35.887Z] === Request Data ===
[2025-01-20T20:20:35.891Z] Authority Provided? - True
[2025-01-20T20:20:35.895Z] Scopes - https://graph.microsoft.com/.default
[2025-01-20T20:20:35.899Z] Extra Query Params Keys (space separated) -
[2025-01-20T20:20:35.907Z] ApiId - AcquireTokenForClient
[2025-01-20T20:20:35.911Z] IsConfidentialClient - True
[2025-01-20T20:20:35.916Z] SendX5C - False
[2025-01-20T20:20:35.922Z] LoginHint ? False
[2025-01-20T20:20:35.927Z] IsBrokerConfigured - False
[2025-01-20T20:20:35.932Z] HomeAccountId - False
[2025-01-20T20:20:35.934Z] CorrelationId - d6debb3b-3798-4d91-8e96-e541d41c3636
[2025-01-20T20:20:35.939Z] UserAssertion set: False
[2025-01-20T20:20:35.943Z] LongRunningOboCacheKey set: False
[2025-01-20T20:20:35.947Z] Region configured:
[2025-01-20T20:20:35.955Z]
[2025-01-20T20:20:35.990Z] False MSAL 4.66.2.0 MSAL.NetCore .NET 8.0.4 Microsoft Windows 10.0.22631
[2025-01-20 20:20:35Z - d6debb3b-3798-4d91-8e96-e541d41c3636]
[2025-01-20T20:20:35.994Z] [LogMetricsFromAuthResult] Cache Refresh Reason: NotApplicable
[2025-01-20T20:20:35.996Z] [LogMetricsFromAuthResult] DurationInCacheInMs: 0
[2025-01-20T20:20:35.998Z] [LogMetricsFromAuthResult] DurationTotalInMs: 3
[2025-01-20T20:20:36.002Z] [LogMetricsFromAuthResult] DurationInHttpInMs: 0
[2025-01-20T20:20:36.007Z] False MSAL 4.66.2.0 MSAL.NetCore .NET 8.0.4 Microsoft Windows 10.0.22631
[2025-01-20 20:20:35Z - d6debb3b-3798-4d91-8e96-e541d41c3636] TokenEndpoint: ****
[2025-01-20T20:20:36.012Z] ClientSecretCredential.GetToken succeeded. Scopes: [ https://graph.microsoft.com/.default ] ParentRequestId: ExpiresOn: 2025-01-21T20:20:13.1153530+00:00
Reproduction Steps
Environment
.NET 8, Azure Function AppService, Azure Function v4
The text was updated successfully, but these errors were encountered: