Skip to content

Identity and authorization ​

App identity, installation consent, and the current user are separate authorization inputs. Knowing who is interacting does not automatically provide a business API credential.

Credential purposes ​

ItemUsed byPurpose
Main application sessionPlatform HostAuthenticate the current user; it is not given to the App
Host instancePlatform and current extensionBind one execution context; possessing an ID alone does not authorize API access
ID TokenVerified by the App backend; web pages use Bridge auth.idToken, while Remote DOM uses sessionToken.get()Prove online identity; it is not a Partners or Connect access token
Online grantApp backendAccess business APIs, constrained by the live instance, user permissions, and installation
Offline grant / refresh tokenApp backendBackground work without an open UI, still subject to installation consent, revocation, and expiry
Portal credentialDeveloper toolsUpload and submit Apps, not access a merchant's business API

An Admin Remote DOM action that supports Host metadata requests can delegate those operations through api.request() without obtaining a business API token itself. Web-based Apps use the Bridge and backend flow below.

Connect your web page to the platform ​

You deploy App Home and web-based actions on your server or static website hosting. GoWarehouse embeds the approved URL in an iframe and provides context and identity through the Bridge. The iframe is the embedding mechanism; your choice of UI framework does not add platform permissions.

When a page needs platform business data, the typical flow is:

  1. The page calls Bridge context.get for the installation and selection context, and auth.idToken for an ID Token.
  2. The page sends the ID Token and business request to your backend. The backend verifies identity and obtains the appropriate installation grant through the platform's OAuth contract.
  3. The backend uses an access token to call Partners for a merchant App or Vanta Connect for an organization App on the installation's deployment, then returns the result to the page.

The iframe Bridge has no general api.request() method. A web page cannot directly use the Remote DOM accessor or pass an ID Token as a Partners or Connect access token.

Call your backend ​

Send the ID Token from the UI to your approved backend. The backend must validate a trusted deployment issuer, JWKS signature, audience, expiry, and installation identity. Decoding a JWT payload is not verification. Do not put client secrets or refresh tokens in UI bundles.

For business API access, a confidential backend exchanges a grant through the destination deployment's /oauth/token, using its published contract. Verification keys come from that trusted deployment's /oauth/jwks; an unverified token must not define which issuer you trust. See Backend APIs for the merchant and organization API families.

A Remote DOM request to your backend comes from the extension runtime origin, which may differ from the main application's origin. Obtain the exact extension_runtime_origin from the trusted destination's /.well-known/gowarehouse-app-platform.json and support the necessary CORS preflight. CORS does not replace token verification.

Revocation and updates ​

Online access may end when the user closes the action, signs out, or loses permission. Uninstalling, disabling, or changing installation consent can also affect grants. Recheck authorization after a denial; do not substitute an offline grant to bypass an operation that requires the current user's consent.

An App upgrade changes the installation's authorization lifecycle. Your backend must handle renewed authorization rather than assuming that an old refresh token works forever. See Publish, install, and upgrade and Troubleshooting.

Last updated 2026-11-29 21:53