:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore: recommend com.posthog.verification_token in CIMD token settings (#62799)
Matt Brooker27cd99ac711f
diff --git a/frontend/src/generated/core/api.ts b/frontend/src/generated/core/api.tsindex 9fb79b49e3a2..3153e77ca5e4 100644--- a/frontend/src/generated/core/api.ts+++ b/frontend/src/generated/core/api.ts@@ -118,10 +118,11 @@ export const getCimdVerificationTokensListUrl = (organizationId: string, params?/*** Manage CIMD verification tokens for an organization.*- * A partner embeds the plaintext token in their CIMD metadata document under- * `posthog_verification_token`. When PostHog fetches the metadata, matching- * the token links the partner app to this organization and grants a higher- * default rate limit for account provisioning.+ * A partner embeds the plaintext token in their CIMD metadata document as+ * `verification_token` inside the `com.posthog` object (the legacy top-level+ * `posthog_verification_token` field still works as a fallback). When PostHog fetches+ * the metadata, matching the token links the partner app to this organization and+ * grants a higher default rate limit for account provisioning.** The plaintext value is only available on creation; we store a hash.*/@@ -143,10 +144,11 @@ export const getCimdVerificationTokensCreateUrl = (organizationId: string) => {/*** Manage CIMD verification tokens for an organization.*- * A partner embeds the plaintext token in their CIMD metadata document under- * `posthog_verification_token`. When PostHog fetches the metadata, matching- * the token links the partner app to this organization and grants a higher- * default rate limit for account provisioning.+ * A partner embeds the plaintext token in their CIMD metadata document as+ * `verification_token` inside the `com.posthog` object (the legacy top-level+ * `posthog_verification_token` field still works as a fallback). When PostHog fetches+ * the metadata, matching the token links the partner app to this organization and+ * grants a higher default rate limit for account provisioning.** The plaintext value is only available on creation; we store a hash.*/@@ -170,10 +172,11 @@ export const getCimdVerificationTokensRetrieveUrl = (organizationId: string, id:/*** Manage CIMD verification tokens for an organization.*- * A partner embeds the plaintext token in their CIMD metadata document under- * `posthog_verification_token`. When PostHog fetches the metadata, matching- * the token links the partner app to this organization and grants a higher- * default rate limit for account provisioning.+ * A partner embeds the plaintext token in their CIMD metadata document as+ * `verification_token` inside the `com.posthog` object (the legacy top-level+ * `posthog_verification_token` field still works as a fallback). When PostHog fetches+ * the metadata, matching the token links the partner app to this organization and+ * grants a higher default rate limit for account provisioning.** The plaintext value is only available on creation; we store a hash.*/@@ -195,10 +198,11 @@ export const getCimdVerificationTokensDestroyUrl = (organizationId: string, id:/*** Manage CIMD verification tokens for an organization.*- * A partner embeds the plaintext token in their CIMD metadata document under- * `posthog_verification_token`. When PostHog fetches the metadata, matching- * the token links the partner app to this organization and grants a higher- * default rate limit for account provisioning.+ * A partner embeds the plaintext token in their CIMD metadata document as+ * `verification_token` inside the `com.posthog` object (the legacy top-level+ * `posthog_verification_token` field still works as a fallback). When PostHog fetches+ * the metadata, matching the token links the partner app to this organization and+ * grants a higher default rate limit for account provisioning.** The plaintext value is only available on creation; we store a hash.*/diff --git a/frontend/src/generated/core/api.zod.ts b/frontend/src/generated/core/api.zod.tsindex f390f16d4762..94420617de58 100644--- a/frontend/src/generated/core/api.zod.ts+++ b/frontend/src/generated/core/api.zod.ts@@ -12,10 +12,11 @@ import * as zod from 'zod'/*** Manage CIMD verification tokens for an organization.*- * A partner embeds the plaintext token in their CIMD metadata document under- * `posthog_verification_token`. When PostHog fetches the metadata, matching- * the token links the partner app to this organization and grants a higher- * default rate limit for account provisioning.+ * A partner embeds the plaintext token in their CIMD metadata document as+ * `verification_token` inside the `com.posthog` object (the legacy top-level+ * `posthog_verification_token` field still works as a fallback). When PostHog fetches+ * the metadata, matching the token links the partner app to this organization and+ * grants a higher default rate limit for account provisioning.** The plaintext value is only available on creation; we store a hash.*/diff --git a/frontend/src/scenes/settings/organization/CIMDVerificationTokens.tsx b/frontend/src/scenes/settings/organization/CIMDVerificationTokens.tsxindex 8b70689280a5..5d2cb6437976 100644--- a/frontend/src/scenes/settings/organization/CIMDVerificationTokens.tsx+++ b/frontend/src/scenes/settings/organization/CIMDVerificationTokens.tsx@@ -20,8 +20,9 @@ export function CIMDVerificationTokens(): JSX.Element {<div className="space-y-4"><p className="text-secondary">Verification tokens link a CIMD partner application to this organization. Add the token to your CIMD- metadata document under <code>posthog_verification_token</code>. Verified partners get a higher default- rate limit for account provisioning and a clear identity trail. See the{' '}+ metadata document as <code>verification_token</code> inside the <code>com.posthog</code> object.+ Verified partners get a higher default rate limit for account provisioning and a clear identity trail.+ See the{' '}<Linkto="https://posthog.com/docs/integrate/provisioning#host-a-cimd-metadata-document"target="_blank"@@ -165,7 +166,8 @@ export function CIMDVerificationTokens(): JSX.Element {revoke and create a new one.</LemonBanner><p className="text-secondary">- Add it to your CIMD metadata document as the <code>posthog_verification_token</code> field.+ Add it to your CIMD metadata document as <code>verification_token</code> inside the{' '}+ <code>com.posthog</code> object.</p><CodeSnippet language={Language.Text}>{justCreatedToken.value}</CodeSnippet></div>diff --git a/posthog/api/cimd_verification_token.py b/posthog/api/cimd_verification_token.pyindex 96e2f6cdc33b..0ebe26b9ab34 100644--- a/posthog/api/cimd_verification_token.py+++ b/posthog/api/cimd_verification_token.py@@ -67,10 +67,11 @@ class CIMDVerificationTokenViewSet():"""Manage CIMD verification tokens for an organization.- A partner embeds the plaintext token in their CIMD metadata document under- `posthog_verification_token`. When PostHog fetches the metadata, matching- the token links the partner app to this organization and grants a higher- default rate limit for account provisioning.+ A partner embeds the plaintext token in their CIMD metadata document as+ `verification_token` inside the `com.posthog` object (the legacy top-level+ `posthog_verification_token` field still works as a fallback). When PostHog fetches+ the metadata, matching the token links the partner app to this organization and+ grants a higher default rate limit for account provisioning.The plaintext value is only available on creation; we store a hash."""