Skip to content

Commit fc9393e

Browse files
authored
Fix logger message to accurately reflect skipCache condition (#5201)
Update ClientCredentialRequest.cs
1 parent 90aab1a commit fc9393e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/Microsoft.Identity.Client/Internal/Requests/ClientCredentialRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected override async Task<AuthenticationResult> ExecuteAsync(CancellationTok
6666
if (skipCache)
6767
{
6868
AuthenticationRequestParameters.RequestContext.ApiEvent.CacheInfo = CacheRefreshReason.ForceRefreshOrClaims;
69-
logger.Info("[ClientCredentialRequest] Skipped looking for a cached access token because either of ForceRefresh, Claims or AccessTokenHashToRefresh were set.");
69+
logger.Info("[ClientCredentialRequest] Skipped looking for a cached access token because ForceRefresh was requested, or there are Claims but no AccessTokenHashToRefresh.");
7070
authResult = await GetAccessTokenAsync(cancellationToken, logger).ConfigureAwait(false);
7171
return authResult;
7272
}

0 commit comments

Comments
 (0)