Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix log messages in backchannel user validator #1346

Merged
merged 1 commit into from
Jul 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ private async Task<(bool Success, BackchannelAuthenticationRequestValidationResu
var payloadClientId = jwtRequestValidationResult.Payload.SingleOrDefault(x => x.Type == JwtClaimTypes.ClientId)?.Value;
if (payloadClientId.IsPresent() && _validatedRequest.Client.ClientId != payloadClientId)
{
LogError("client_id found in the JWT request object does not match client_id used to authenticate", new { invalidClientId = payloadClientId, clientId = _validatedRequest.Client.ClientId });
LogError("client_id found in the JWT request object does not match client_id used to authenticate, {@values}", new { invalidClientId = payloadClientId, clientId = _validatedRequest.Client.ClientId });
return (false, Invalid(OidcConstants.AuthorizeErrors.InvalidRequestObject, "Invalid client_id in JWT request"));
}

Expand Down Expand Up @@ -509,7 +509,7 @@ private void LogWithRequestDetails(LogLevel logLevel, string message = null, obj
}
else
{
_logger.Log(logLevel, message + "{@values}, details: {@details}", values, details);
_logger.Log(logLevel, message + ", details: {@details}", values, details);
}

}
Expand Down
Loading