Skip to content

Commit 15fc53c

Browse files
bad -> revoked
1 parent 13d54aa commit 15fc53c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,19 @@ protected override async Task<AuthenticationResult> ExecuteAsync(CancellationTok
6363
_managedIdentityParameters.Claims = AuthenticationRequestParameters.Claims;
6464
AuthenticationRequestParameters.RequestContext.ApiEvent.CacheInfo = CacheRefreshReason.ForceRefreshOrClaims;
6565

66-
// If there is a cached token, compute its hash for the “bad token” scenario
66+
// If there is a cached token, compute its hash for the “revoked token” scenario
6767
if (cachedAccessTokenItem != null)
6868
{
6969
string cachedTokenHash = _cryptoManager.CreateSha256HashHex(cachedAccessTokenItem.Secret);
7070
_managedIdentityParameters.RevokedTokenHash = cachedTokenHash;
7171

72-
logger.Info("[ManagedIdentityRequest] Claims are present. Computed hash of the cached (bad) token. " +
72+
logger.Info("[ManagedIdentityRequest] Claims are present. Computed hash of the cached (revoked) token. " +
7373
"Will now request a fresh token from the MI endpoint.");
7474
}
7575
else
7676
{
7777
logger.Info("[ManagedIdentityRequest] Claims are present, but no cached token was found. " +
78-
"Requesting a fresh token from the MI endpoint without a bad-token hash.");
78+
"Requesting a fresh token from the MI endpoint without a revoked-token hash.");
7979
}
8080

8181
// In both cases, we skip using the cached token and get a new one

0 commit comments

Comments
 (0)