: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
fix(oauth): say id-jag is on the scale and enterprise add-ons (#128775)
Rafael Audibert33c0baee84b5
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 3587e4cd5218..7c4397667053 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -15495,9 +15495,9 @@ snapshots:scenes-app-settings-authentication-domains--one-unverified-domain--light:hash: v1.k794b7964.c4c93e148ba37765c7ddec2df4af4ee754e29cfeb838d368872000c44fa87c42.07YNlu7neNFZnUtq4Ab4ZQwfv_OdqoLcYL3clXrNIRUscenes-app-settings-authentication-domains--redesigned-needs-upgrade--dark:- hash: v1.k794b7964.c93a6b0b6fb56f22911b8c6f8e48ba2a956d53241f07cdd7c2548560b59665de.v9QiVnH3zj0mMUgzctSzKTErc1Ay5Mn1ooZKYlT6L1I+ hash: v1.k794b7964.9a290259a669970b8f166c570fb2ed7d33dbc3ee3d9ea0ef4048bc3594a7f65c.FNlHQabRMo8rsJ6e7063MvQ3N8m1IIx3Twx91uld6ZMscenes-app-settings-authentication-domains--redesigned-needs-upgrade--light:- hash: v1.k794b7964.f395a7d506b5cf5720728881ee9cfb100548e824fe4dc6cd2dbcd3781f1f7a2c._C4PfqjO_GbsDI6xtIQmmKzrMsnvWR-r7kGCnR8rZE4+ hash: v1.k794b7964.dfb062955f0c6dbc1c96ba37f1e62a4a5a32f0eea77ada8bbf6a4cea05e6b86f.IereAYeRp_9XCj1Wv8V7VVwQ2Dlwlz0igyxZg9uDZWIscenes-app-settings-environment--settings-environment-access-control--dark:hash: v1.k794b7964.577b5cb70184dc199b51e5c97a88023e432e14e8c3a46ca5b19da13dc98891d5.qoieSgSqwcfEFhokL46UPeVt2V3X_bfHHRMKCGp9cBoscenes-app-settings-environment--settings-environment-access-control--light:@@ -15663,13 +15663,13 @@ snapshots:scenes-app-settings-identity-provider-configuration--xaa--light:hash: v1.k794b7964.5371ca8161c22dd024bbad0c6c594c6931c2c33c69d11958c00fa12ab08ce6de.f4j1L0BkzLBrky90jSz9LLnMYsOmt_FFUtB1JSyMHUUscenes-app-settings-identity-provider-configuration--xaa-needs-upgrade--dark:- hash: v1.k794b7964.8f199bb3ba661863dd31a85cd08f6eb01ccf70f9b5fb5ad5a5cfa6f1cd8e8254.G4zkNAqP7UHPJ9oiFz6YQkkeCQd9hL0kz6vXfUpYEJs+ hash: v1.k794b7964.9f5c306788dd686e3f38fe08f177974738519fbe5af6ce2d4742d5b389ba289e._Ktl6F5Q5OdZaYiw6edgeUYKYoPt_kOAy19GkUdI4vkscenes-app-settings-identity-provider-configuration--xaa-needs-upgrade--light:- hash: v1.k794b7964.9d93b0682bf14e191da3fa9614a1500ec01fbe7a9c313680c5fa2d776ae65806.KFggaDLcSJvceGa1JimS0m5ayPo6m_OtoH7_tzeqR-8+ hash: v1.k794b7964.c23f3ef7558520f2e53285580ecd12d54773bbc86d8ed797e4f8ebdfae4eb635.AZ8z1Rbq376TRXakFXc9rEam9O0aIg9z_cDxQ9CAB6Escenes-app-settings-organization--settings-organization-authentication--dark:- hash: v1.k794b7964.fb4fdf7c5ffff296cb74c13c2104e73611d25ede49d1d86891c1f589d8ce0884.n4LOQ1bNp0EjJycDEtys-oUvdIMaArmYRathbw-0fPk+ hash: v1.k794b7964.c9ba339a4e6d87616a7c00881ade98c806be0991987445381486c9092a59b6c0.7iBp9hY5Ylqk7kA2gSMpmziV-p4GNsyqlH14dOaAwdEscenes-app-settings-organization--settings-organization-authentication--light:- hash: v1.k794b7964.c28379c526c9ccbd355d4204d0aafb7b8c3aaa6c48ee152fc5eb75a29852fe3b.lJKUnsm2B6FmH_FWE-WX1f2ZvUimJb3t-g9hK4j4X1g+ hash: v1.k794b7964.b5e80246f528b6ee6d3ce280bd1492d42299b012a68dae52adadf2e9f14a5ad6.QgFABFsofE5B3DCHZvW2uSMjckJqDzxwWHR_xYIEa0kscenes-app-settings-organization--settings-organization-billing--dark:hash: v1.k794b7964.4aa8732c5bf12ac181bd07a2873ecc5c4700a72bc3829238bc0882dacc9a9ffb.4nUL9pTmY4mgAovKPz8xU354d6i04uV1n-vszqm2oKAscenes-app-settings-organization--settings-organization-billing--light:diff --git a/frontend/src/mocks/fixtures/_billing_platform_addons.tsx b/frontend/src/mocks/fixtures/_billing_platform_addons.tsxindex 20bc7fef26de..0e7c0113a14c 100644--- a/frontend/src/mocks/fixtures/_billing_platform_addons.tsx+++ b/frontend/src/mocks/fixtures/_billing_platform_addons.tsx@@ -152,8 +152,8 @@ const roleBasedAccess = feature(const scim = feature('scim', 'SCIM', 'Automatically sync users and roles from your identity provider to PostHog.')const xaaAuthentication = feature(AvailableFeature.XAA_AUTHENTICATION,- 'Cross App Access (XAA)',- 'Automate API and MCP access to PostHog.'+ 'XAA authentication',+ 'Let tools automatically provision API and MCP access for your users via the XAA protocol.')const dedicatedSupport = feature('dedicated_support',@@ -234,6 +234,7 @@ const SCALE_FEATURES: AddonPlanFeature[] = [organizationInviteSettings,organizationSecuritySettings,memberGovernance,+ xaaAuthentication,sessionReplayDataRetention(12),highFrequencyAlerts,realTimeAlerts,diff --git a/posthog/templates/auth_md.md b/posthog/templates/auth_md.mdindex 4203b74613f1..ba0dae0a01e6 100644--- a/posthog/templates/auth_md.md+++ b/posthog/templates/auth_md.md@@ -12,9 +12,9 @@ PostHog is an open-source platform for product analytics, session replay, featur- OAuth 2.0: standard authorization-code flow for an app acting on behalf of a user. See https://posthog.com/docs/api/oauth- Personal API keys: long-lived keys for scripts and server-to-server use. See https://posthog.com/docs/api#authentication-## Agent registration via ID-JAG (Enterprise, beta)+## Agent registration via ID-JAG (Scale and Enterprise, beta)-Available on the Enterprise plan with XAA enabled, and currently in beta, so most clients should use one of the options above. With it configured, an agent presents an [ID-JAG](https://xaa.dev) identity assertion (`identity_assertion`) to the token endpoint using the JWT-bearer grant (`urn:ietf:params:oauth:grant-type:jwt-bearer`) and receives a scoped, short-lived OAuth access token bound to the user. The agent must also authenticate as a registered client, with a client secret or `private_key_jwt`, and the ID-JAG's `client_id` must name that client. See https://posthog.com/docs/settings/id-jag+Available to organizations on the Scale or Enterprise platform add-on that have XAA configured. It is in beta, so most clients should use one of the options above. With it configured, an agent presents an [ID-JAG](https://xaa.dev) identity assertion (`identity_assertion`) to the token endpoint using the JWT-bearer grant (`urn:ietf:params:oauth:grant-type:jwt-bearer`) and receives a scoped, short-lived OAuth access token bound to the user. The agent must also authenticate as a registered client, with a client secret or `private_key_jwt`, and the ID-JAG's `client_id` must name that client. See https://posthog.com/docs/settings/id-jag- Identity endpoint: `{{ base_url }}/oauth/token/`- Assertion type: `urn:ietf:params:oauth:token-type:id-jag`