From 02ef173fc9e2af5dbb2ace3b0aabe29a713193ee Mon Sep 17 00:00:00 2001 From: PavelBrm Date: Fri, 18 Oct 2024 19:02:19 +1300 Subject: [PATCH] fix: log when issuer id does not match --- services/skus/service.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/skus/service.go b/services/skus/service.go index cbaa556a4..bff41e4e0 100644 --- a/services/skus/service.go +++ b/services/skus/service.go @@ -1512,6 +1512,9 @@ func (s *Service) verifyBlindedTokenCredential(ctx context.Context, req credenti } if issuerID != decodedCred.Issuer { + lg := logging.Logger(ctx, "skus").With().Str("func", "verifyBlindedTokenCredential").Logger() + lg.Err(model.Error("tlv2 issuer mismatch")).Str("issuer_id", issuerID).Str("decoded_issuer", decodedCred.Issuer).Msg("tlv2 issuer mismatch") + return handlers.WrapError(nil, "Error, outer merchant and sku don't match issuer", http.StatusBadRequest) }