Skip to content

Commit

Permalink
fix: log when issuer id does not match
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbrm committed Oct 18, 2024
1 parent 7df21e9 commit 02ef173
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/skus/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 02ef173

Please sign in to comment.