Fix PunchOut 401 SharedSecret, HTTPS & iframe cookie bugs.

Half of all PunchOut UAT failures happen before the buyer even sees a product: rejected SharedSecret, blocked third-party session cookies inside Ariba/Coupa iframes, or HTTP return URLs.

BEFORE — Rejected by portal
<!-- COMMON UAT FAILURES -->
1. Set-Cookie: session=abc; SameSite=Strict      <!-- DROPPED inside Ariba/Coupa iframe! -->
2. <BrowserFormPost><URL>http://...</URL>        <!-- REJECTED: non-HTTPS return URL -->
3. Comparing SharedSecret with === and whitespace <!-- 401 mismatch + timing leak -->
AFTER — Valid cXML / OCI
<!-- MAILLON PRODUCTION PATTERN -->
1. Set-Cookie: __Host-maillon_po=...; HttpOnly; Secure; SameSite=None; Partitioned
2. Strict HTTPS check + private IP SSRF block on BrowserFormPost / HOOK_URL
3. Constant-time crypto.timingSafeEqual() + encrypted-at-rest SharedSecret (AES-256-GCM)

Root Causes & Permanent Fix

SameSite=Lax or Strict cookies in iframes

Chrome and Edge block standard cookies when the PunchOut storefront opens inside an ERP iframe. Use Secure; SameSite=None; Partitioned (CHIPS).

Whitespace or case typos in Identity / SharedSecret

Copy-pasting credentials from email often appends spaces or swaps NetworkId vs DUNS domain.

Never logging raw SharedSecrets

Keep human-readable Live Logs that show why auth failed (wrong identity vs wrong secret) while redacting secret values to [REDACTED].

See your catalogue in the SAP Ariba simulator, no sign-up.

The pre-filled demo shows a B2B catalogue, two test buyers (cXML and SAP OCI 4.0), the simulator and a purchase order as PDF and CSV.

Frequently Asked Questions

Why does my PunchOut session log out immediately inside SAP Ariba?

Modern browsers block third-party cookies in iframes unless your session cookie carries Secure, SameSite=None, and Partitioned attributes — or the buyer opens PunchOut in a new tab.

How does Maillon simplify IT testing with the buyer?

Every buyer connection in app.maillonapp.fr generates a revocable Shareable IT Sheet where the buyer's IT team can test their SharedSecret safely without emailing passwords back and forth.