Suger is now Fours. Read the announcement

Google Cloud Marketplace Sign-Up: Verify the JWT

When a buyer registers from Google Cloud Marketplace, Google posts a signed token to your sign-up page that expires in five minutes, and an account left unapproved can get a private offer rejected. Here's what to verify, what to approve, and how to stop a copied link from claiming another customer's purchase.

Samantha Ho
Oct 15, 2026 ·

Google Cloud Marketplace sign-up is the step where a buyer who has bought your SaaS product registers with you: Google posts a signed JSON Web Token to your sign-up URL, the token is verified and the buyer linked to an account, and the account Google created for them has to be approved before a private offer can take effect. Miss an approval by the offer’s scheduled start date, and the offer is automatically rejected.


Acme is about to send its first Google Cloud Marketplace private offer to Umbrella, and its security reviewer has one item left: the sign-up path. What does Google send to our sign-up page? What must we verify and approve? And how do we stop someone binding their own account to another customer’s purchase?

Google’s partner documentation answers the first two. The third depends on what reaches your page: Google’s token if you integrate directly, or a redirect from whatever receives the buyer first. This runbook covers verify, approve and bind, in that order. The AWS counterpart, a registration page that redeems a token through ResolveCustomer, is in the AWS Marketplace SaaS registration page checklist.

What does Google send to your sign-up URL?

When a buyer starts Google Cloud Marketplace sign-up, Google sends an HTTP POST request to your sign-up page with a JSON Web Token in the x-gcp-marketplace-token parameter. The buyer starts it from the Register with button that carries your company name, if they don’t have an account in your system yet.

A JSON Web Token (JWT) is a compact set of claims, signed so the receiver can check who issued it. Google’s carries “the user’s procurement account ID, which identifies them as a Google Cloud user, and an obfuscated ID, which represents their Google account ID.” Google’s rule for them: “You must use both the procurement account ID and the obfuscated ID to link the user’s Google account to their account in your system.”

Three details shape the page:

  • No login wall. Users must reach the sign-up page “without first entering a username and password.”
  • Procurement accounts aren’t people. “It’s possible for a single user to have multiple procurement account IDs, or for multiple users to share a common procurement account ID,” so don’t model the link as one-to-one.
  • Sign-up isn’t the only POST. When customers log in with SSO, Google posts a token “of the same format” to your login page.
EventRequestVerify the JWT?
Sign up a new customerPOSTYes
Customer login, without SSOGETNo
Customer login, with SSOPOSTYes

Both addresses go in Producer Portal: on your product’s Overview page, under Technical integration, choose Frontend integration and fill in Sign up URL and Login URL.

Which claims are in Google’s sign-up JWT?

Google’s token is signed with RS256 and carries its issuer, its issue and expiry times, your product’s domain as the audience, and the buyer’s identifiers and roles. The header’s alg “is always RS256,” and its kid is the key ID you look up in the JSON object at the iss URL.

ClaimWhat Google’s page says
isshttps://www.googleapis.com/robot/v1/metadata/x509/[email protected], a URL that “links to a public key from Google”
iatThe time the token is sent
exp”Set to 5 minutes after the token is sent”
aud”The domain that hosts your product”
subOne of two readings, below
google.rolesaccount_admin or project_editor
google.user_identity”An obfuscated user reference,” usable as a login_hint to start a Google sign-in
google.ordersOnly with multiple orders of the same product turned on: an order ID for each entitlement, which your login page must be able to handle

Google’s page gives sub two meanings. Its payload template shows "sub": "PROCUREMENT_ACCOUNT_ID", while the bullet under it says “sub is the user’s Google account ID.” The page doesn’t reconcile them, so don’t build on either reading alone. Google’s earlier rule holds either way: link on both IDs. Our suggestion is to store sub and google.user_identity side by side with the account.

Roles tell you who is registering. account_admin marks “a Billing Account Administrator (Order Administrator) of the billing account that purchased the product”; project_editor, “an Editor (Entitlement Manager), but not a Billing Administrator, of the project under that billing account.” With SSO on, account_admin users must also have project_editor.

What must you verify before trusting Google’s token?

Google lists five checks: the signature against Google’s public key, exp, aud, iss, and a non-empty sub. When you receive the token, Google says you must verify:

  1. The signature, “using the public key from Google,” found through kid and the iss URL.
  2. Expiry, “by checking the exp claim”: five minutes after sending.
  3. Audience: aud “is the correct domain for your product.”
  4. Issuer: iss is exactly the cloud-commerce-partner@system.gserviceaccount.com URL in the table above.
  5. Subject: “sub is not empty.”

One thing not to check: “you shouldn’t consider a JWT invalid just because it contains new fields that you haven’t yet encountered,” because Google might add some.

Then: “After verifying the JWT, your sign up page must send an account approval request to the Partner Procurement API.” Google doesn’t say what to do with a token that fails a check. Our reading: treat it as no sign-up at all, so create nothing, link nothing and send no approval.

These checks fall to you when Google’s POST reaches your own page. If a marketplace vendor receives it for you, the checks are the vendor’s, and what reaches your page is the vendor’s redirect, which raises the binding question below.

Why does the buyer’s account need the signup approval?

Because Google creates the buyer’s account with a pending approval named signup, and a private offer can’t take effect until it’s approved. Cloud Marketplace creates the account resource at a user’s first purchase of your product and reuses it for later ones. Accounts are created ACCOUNT_ACTIVE, “but they have a PENDING entry in the approvals field called signup, which indicates that the user has not yet signed up.”

After the user signs up, “your app must call the Partner Procurement API and indicate that the account has been approved,” at https://cloudcommerceprocurement.googleapis.com/:

POST v1/providers/YOUR_PARTNER_ID/accounts/USER_ACCOUNT_ID:approve {'approvalName': 'signup'}

USER_ACCOUNT_ID is “the account ID created by Cloud Marketplace,” also sent in the account Pub/Sub message if you’ve turned on account notifications. A GET on the same account path returns the signup approval, whose state reads APPROVED once it’s done.

The deadline is the offer’s start date. Google’s note for sellers using automatic offer approval: “you still must approve your customer’s account before an offer can take effect. If you don’t approve your customer’s account before the scheduled start date of their offer, that offer is automatically rejected, for both new offers and amendments to existing offers.”

Without automatic offer approval, the entitlement carries the same deadline, a step of its own in renewing a Google Cloud Marketplace private offer. And if you can’t approve an entitlement, Google says to “verify that you’ve approved the customer’s account resource.”

Our suggestion: before every private offer’s scheduled start date, read the buyer’s account and confirm signup reads APPROVED, whichever part of your stack sends the approval.

Bind the account only on something an attacker can’t copy: Google’s verified token, or a signed, short-lived token from whatever sits in front of you. When Google’s POST reaches your page, the verified JWT is that proof, and you link on both of its IDs. The risk appears when something redirects the buyer to your page with a purchase identifier in the URL. Such an ID ends up in browser history, support tickets, forwarded emails and logs, and anyone who has one can open your sign-up page with it.

Three rules hold whichever route reaches you:

  • Treat a plain ID as a claim, not proof. Look it up before attaching it, and if it’s already attached to an account, send the buyer to sign in rather than create a second account.
  • Verify any signed token before reading it. Check signature, issuer, expiry and audience, the same shape as Google’s five checks, and never decode a token without verifying it.
  • Use the link once. Verify on first load, start your own session, and don’t ask the buyer to reuse the link.

How Fours handles Google Cloud Marketplace sign-up

With Fours in front, Google’s POST goes to a Fours endpoint: Fours runs Google’s checks, creates the entitlement, resolves the subscription while the buyer is on the landing page, and redirects the buyer to your own page. You route the sign-up and SSO login URLs in Producer Portal’s Frontend integration through Fours’ endpoints and put your page in the product’s Fulfillment URL in the Fours Console, as the list and update product docs describe. By default the redirect carries sugerEntitlementId (a comma-separated list for a buyer with several orders), partner=gcp, gcpAccountId and offerType, and your app fetches the entitlement and buyer from the Fours API. Fours’ docs are plain that this ID “is not a secret.”

Signed Buyer Handoff, “opt-in per integration and off by default” under Integrations → GCP → Edit, moves those parameters inside a five-minute signed token:

Before: https://app.acme.example/gcp-signup?sugerEntitlementId=ENTITLEMENT_ID&partner=gcp&gcpAccountId=ACCOUNT_ID&offerType=PRIVATE
After:  https://app.acme.example/gcp-signup?token=SIGNED_TOKEN&partner=gcp
Google’s sign-up JWTFours’ handoff token
ArrivesIn the POST, as x-gcp-marketplace-tokenIn the redirect URL, as token
Lifetime5 minutes5 minutes, with about 30 seconds of clock skew allowed
KeysGoogle’s, through the iss URL and kidhttps://apiv2.suger.cloud/public/handoff/jwks.json, a dedicated key set, not the OAuth JWKS at /.well-known/jwks.json
issGoogle’s cloud-commerce-partner service account URLhttps://apiv2.suger.cloud
audThe domain that hosts your productThe host Fours redirects the buyer to: your Fulfillment URL’s host, or the hook’s host if a BeforeSignupRedirect hook sends buyers elsewhere
Fifth checksub isn’t emptyscenario is exactly seller_handoff, because Fours signs other tokens with the same key
Claims to read once verifiedProcurement account ID, obfuscated ID, roles, ordersent, buyer, product, org, gcp_account, partner, offer_type

What it leaves to you is the verifier and its rollout. The token “verifies more than once” within its five minutes, so deduplicate on jti if you need strict single use; it “is not a bearer credential for the Fours API”; and an introspect endpoint exists for stacks where offline verification is awkward, such as Salesforce Apex, though offline is recommended. Ship a handler that reads both forms before you flip the toggle, because “if you enable it before your page can read a token, your signup page will reject every buyer,” the failure in when a buyer pays but provisioning never happens. Keep the plain branch afterwards too: the signup redirect still falls back to plain parameters “when the purchase doesn’t resolve to exactly one entitlement, when signing fails, or when your signup URL is the Fours-hosted new-client form,” and it’s on you to treat those as claims. Approving the signup account before each offer’s start date is worth confirming either way. For listing, private offers and co-sell, see the complete guide to selling on Google Cloud Marketplace.

Frequently asked questions

What does Google send to a SaaS sign-up page?

An HTTP POST with a JSON Web Token in the x-gcp-marketplace-token parameter, sent when the buyer clicks Register with your company’s name in Cloud Marketplace. It carries the buyer’s procurement account ID and an obfuscated Google account ID, and expires five minutes after it’s sent.

What must you check in Google’s sign-up JWT?

Google lists five checks: the signature uses Google’s public key, the token hasn’t expired, aud is your product’s domain, iss is Google’s cloud-commerce-partner service account URL, and sub isn’t empty. Don’t reject a token just because it contains fields you haven’t seen before.

What happens if a buyer’s Google Cloud Marketplace account isn’t approved?

Google creates the account with a pending approval named signup. With automatic offer approval on, an account not approved before a private offer’s scheduled start date gets that offer automatically rejected, for new offers and amendments alike. Without it, the entitlement faces the same deadline.

Is the entitlement ID that Fours sends your sign-up page a secret?

No. Fours’ docs say it appears in browser history, support tickets, forwarded confirmation emails and webhook logs, and anyone who obtains one can bind their own account to someone else’s purchase. On Google Cloud Marketplace, Signed Buyer Handoff replaces it with a short-lived signed token.

Sources

Primary sources for the platform rules cited above. Last verified October 15, 2026. Cloud providers change fees, eligibility, and program terms without notice — check the source before relying on a figure.

  • Google Cloud Marketplace Partners: Integrate your app's frontend — The Register with button; the HTTP POST to the sign up page with a JWT in the x-gcp-marketplace-token parameter, carrying the procurement account ID and an obfuscated ID that must both be used to link accounts; users with several procurement account IDs, or sharing one; access without a username and password; the Sign up URL and Login URL fields; which requests carry a JWT that must be verified, SSO login included; the header and payload, with sub shown as PROCUREMENT_ACCOUNT_ID in the template and described as the user's Google account ID in the bullet below it; the roles and the orders field; the five checks; not rejecting a JWT for new fields; the account approval request after verifying
  • Google Cloud Marketplace Partners: Manage user accounts for your SaaS product — The account resource created at a user's first purchase and reused for later purchases of your products; the account Pub/Sub message and its account ID; accounts created ACCOUNT_ACTIVE with a PENDING approval called signup; the approve call with approvalName signup, at the cloudcommerceprocurement.googleapis.com endpoint; the status call and its APPROVED state
  • Google Cloud Marketplace Partners: Manage entitlements for private offers with automatic offer approval — With automatic offer approval on, you still must approve the customer's account before an offer can take effect; an account not approved before the offer's scheduled start date gets the offer automatically rejected, for new offers and amendments to existing offers
  • Google Cloud Marketplace Partners: Manage entitlements for private offers — An entitlement not approved before the offer's scheduled start date is automatically rejected, for new offers and amendments; if an entitlement can't be approved, verify that the customer's account resource is approved
  • Fours docs: Google Cloud Marketplace Signed Buyer Handoff — Fours behaviour: Fours verifies Google's signed token, creates the entitlement and redirects with an entitlement ID that is not a secret; the setting, opt-in per integration and off by default, under Integrations, GCP, Edit; ship verification before turning it on; the token and partner parameters and the claims; the dedicated key set at /public/handoff/jwks.json, not /.well-known/jwks.json; the five checks and about 30 seconds of clock skew; tokens last 5 minutes, aren't single-use and can be deduplicated on jti; identity only, not an API credential; the optional introspect endpoint; the fallback to unsigned parameters
  • Fours docs: Signup URL Redirect — Fours behaviour: the sugerEntitlementId, partner, offerType and gcpAccountId parameters, with a comma-separated list for a Google Cloud buyer with several orders; storing the ID and fetching the entitlement and buyer from the Fours API; Google Cloud purchases resolved while the buyer is on the landing page; with Signed Buyer Handoff on, only token and partner, falling back to plain parameters when the purchase doesn't resolve to exactly one entitlement, when signing fails, or for the Fours-hosted new-client form
  • Fours docs: Google Cloud Marketplace List & Update Product — Fours behaviour: in Producer Portal's Frontend integration, the Sign-up URL and SSO Login URL are routed through Fours' endpoints; your own signup page goes in the product's Fulfillment URL in the Fours Console

Browse every post on the Fours Blog

Stay Updated

New posts, product updates and marketplace strategy are shared on LinkedIn as they publish.

Follow Fours on LinkedIn