Docs Index
embedded platform adapters.md

Proof Card: Embedded Platform Adapters

Status: production Last verified: 2026-05-23

Claim

The embedded SuiteCentral surface can be launched from NetSuite and Business Central platform shells without exposing the SuiteCentral embedded service token to browser JavaScript. Both platform adapters declare a hostBootstrap.method = 'server_to_server' descriptor and ship platform artifacts that call /api/embedded/host-bootstrap server-to-server (NetSuite via N/https, Business Central via AL HttpClient), rendering only the iframe URL returned in the bootstrap response.

Source

Tests

Live vs Fixture

Known Gaps

Verification

npm test -- tests/unit/embedded/EmbeddedPlatformAdapter.test.ts tests/unit/embedded/netsuiteSuiteAppAdapter.test.ts tests/unit/embedded/businessCentralExtensionAdapter.test.ts
npm run check:adapter-conformance
grep -nE "browserBearerExposed: false|N/https|HttpClient" src/embedded/adapters/*.ts platform/netsuite-suiteapp/*.js platform/business-central-extension/src/*.al

Expected output: all 3 test suites green (the per-suite test count is not hardcoded here to avoid drift; see Tests: line in jest output), [check-adapter-conformance] OK — 2 adapter(s) verified, and at least one browserBearerExposed: false hit in each adapter file plus N/https in the Suitelet and HttpClient in the AL page extension.