Skip to content

Document ID-JAG (XAA) and MCP enterprise-managed authorization#17786

Open
rafaeelaudibert wants to merge 3 commits into
masterfrom
document-id-jag-andenterprise-managed-authorization-in-mcp
Open

Document ID-JAG (XAA) and MCP enterprise-managed authorization#17786
rafaeelaudibert wants to merge 3 commits into
masterfrom
document-id-jag-andenterprise-managed-authorization-in-mcp

Conversation

@rafaeelaudibert

Copy link
Copy Markdown
Member

What

Adds user-facing documentation for ID-JAG (Identity Assertion JWT Authorization Grant, aka XAA) and how to use it to connect to the PostHog MCP server via the enterprise-managed authorization extension.

Documents the feature shipped in PostHog/posthog#64747 (feat(oauth): support MCP enterprise-managed authorization (ID-JAG)).

Changes

  • New page — /docs/settings/id-jag (contents/docs/settings/id-jag.mdx): the general ID-JAG (XAA) auth grant — why use it, requirements, IdP setup, the token-exchange request, token properties, central revocation, and troubleshooting. Includes beta and Enterprise-plan callouts, and notes the feature isn't enabled for every Enterprise customer yet (points to TAM / <SmallTeam slug="platform-features" />).
  • New page — /docs/model-context-protocol/enterprise-managed-authorization (contents/docs/model-context-protocol/enterprise-managed-authorization.mdx): the MCP-specific flow — discovery (authorization_grant_profiles_supported), the ID-JAG → access-token exchange, client setup, and troubleshooting.
  • FAQ (contents/docs/model-context-protocol/faq.mdx): cross-link Q&A under the auth section.
  • Nav (src/navs/index.js): entries under the MCP section and the settings/security section.

Notes

  • Content was written from the monorepo implementation (posthog/api/id_jag.py, posthog/api/oauth/views.py, the ConfigureIdJagModal) and the MCP extension spec.
  • Placed the general page in the settings/security group alongside SSO/SAML/SCIM (no dedicated "enterprise" docs section exists, and that's where the "Configure XAA (ID-JAG)" UI lives). Happy to relocate — would just need a vercel.json redirect.

🤖 Generated with Claude Code

Adds user-facing docs for ID-JAG (Identity Assertion JWT Authorization
Grant, aka XAA) and how to use it to connect to the PostHog MCP server
via the enterprise-managed authorization extension.

- New general ID-JAG (XAA) auth page under settings, covering the grant,
  setup, token exchange, tokens, revocation, and troubleshooting
- New MCP enterprise-managed authorization page covering the MCP-specific
  flow, discovery, and client setup
- FAQ cross-link and nav entries (MCP section + settings section)

Documents the feature added in PostHog/posthog#64747.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rafaeelaudibert rafaeelaudibert requested review from a team, MattBro and fercgomes and removed request for a team June 19, 2026 01:32
@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Jun 19, 2026 01:46AM

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Vale prose linter → found 31 errors, 47 warnings, 7 suggestions in your markdown

Full report → Copy the linter results into an LLM to batch-fix issues.

Linter being weird? Update the rules!

contents/docs/model-context-protocol/enterprise-managed-authorization.mdx — 13 errors, 13 warnings, 4 suggestions
Line Severity Message Rule
10:242 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
10:265 warning 'Entra' is a possible misspelling. PostHogBase.Spelling
10:301 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
10:389 warning 'OAuthing' is a possible misspelling. PostHogBase.Spelling
12:107 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
12:112 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
26:180 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
30:24 suggestion Address the reader directly. Use 'you' instead of 'the user'. PostHogDocs.DirectAddress
59:38 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
59:70 suggestion Address the reader directly. Use 'you' instead of 'the user'. PostHogDocs.DirectAddress
63:137 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
89:48 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
90:122 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
98:119 suggestion Address the reader directly. Use 'you' instead of 'the user'. PostHogDocs.DirectAddress
106:35 warning 'IdP's' is a possible misspelling. PostHogBase.Spelling
108:48 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
110:43 warning 'IdP's' is a possible misspelling. PostHogBase.Spelling
116:15 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
117:42 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
117:96 warning 'orgs' is a possible misspelling. PostHogBase.Spelling
141:54 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
147:19 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
148:27 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
149:27 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
150:32 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
154:102 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
158:37 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
163:181 suggestion Address the reader directly. Use 'you' instead of 'the user'. PostHogDocs.DirectAddress
163:271 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
163:287 warning Capitalize 'Logs' for PostHog's product. Use 'logs' for the general industry concept. PostHogBase.ProductNames
contents/docs/model-context-protocol/faq.mdx — 5 errors, 22 warnings, 0 suggestions
Line Severity Message Rule
10:71 warning 'untrusted' is a possible misspelling. PostHogBase.Spelling
16:150 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
16:165 warning Capitalize 'Product Analytics' for PostHog's product. Use 'product analytics' for the general industry concept. PostHogBase.ProductNames
16:184 warning Capitalize 'Error Tracking' for PostHog's product. Use 'error tracking' for the general industry concept. PostHogBase.ProductNames
16:200 warning Capitalize 'Experiments' for PostHog's product. Use 'experiments' for the general industry concept. PostHogBase.ProductNames
16:231 warning Capitalize 'Surveys' for PostHog's product. Use 'surveys' for the general industry concept. PostHogBase.ProductNames
30:111 warning Capitalize 'Endpoints' for PostHog's product. Use 'endpoints' for the general industry concept. PostHogBase.ProductNames
38:5 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
38:108 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
42:218 warning 'Entra' is a possible misspelling. PostHogBase.Spelling
42:254 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
50:69 warning 'untrusted' is a possible misspelling. PostHogBase.Spelling
54:5 warning 'Using an API key instead of OAuth' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
54:33 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
56:36 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
87:30 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
88:25 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
92:20 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
93:15 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
119:122 warning 'Cowork' is a possible misspelling. PostHogBase.Spelling
163:57 warning Use the Oxford comma before 'and' or 'or' in a list of three or more items. PostHogBase.OxfordComma
186:31 warning Capitalize 'Data Warehouse' for PostHog's product. Use 'Data warehouse' for the general industry concept. PostHogBase.ProductNames
192:43 warning Capitalize 'Experiments' for PostHog's product. Use 'experiments' for the general industry concept. PostHogBase.ProductNames
221:68 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
252:24 warning Use 'PostHog' instead of 'posthog'. Vale.Terms
253:26 warning Use 'PostHog' instead of 'posthog'. Vale.Terms
254:17 warning Use 'PostHog' instead of 'posthog'. Vale.Terms
contents/docs/settings/id-jag.mdx — 13 errors, 12 warnings, 3 suggestions
Line Severity Message Rule
10:138 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
10:161 warning 'Entra' is a possible misspelling. PostHogBase.Spelling
10:197 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
10:359 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
26:110 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
28:38 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
29:26 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
30:30 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
31:21 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
63:51 warning 'IdP's' is a possible misspelling. PostHogBase.Spelling
63:169 suggestion Address the reader directly. Use 'you' instead of 'the user'. PostHogDocs.DirectAddress
77:119 suggestion Address the reader directly. Use 'you' instead of 'the user'. PostHogDocs.DirectAddress
85:35 warning 'IdP's' is a possible misspelling. PostHogBase.Spelling
87:48 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
89:43 warning 'IdP's' is a possible misspelling. PostHogBase.Spelling
97:4 warning 'Exchanging an ID-JAG for an access token' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
99:41 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
124:65 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
130:19 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
131:27 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
132:27 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
133:32 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
137:102 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
141:37 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling
146:181 suggestion Address the reader directly. Use 'you' instead of 'the user'. PostHogDocs.DirectAddress
146:271 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
146:287 warning Capitalize 'Logs' for PostHog's product. Use 'logs' for the general industry concept. PostHogBase.ProductNames
157:4 warning 'OAuth' is a possible misspelling. PostHogBase.Spelling

rafaeelaudibert and others added 2 commits June 18, 2026 22:33
The intro linked "OAuth" to the SSO page; point it to /docs/api/oauth
and add the OAuth integration page to further reading.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The same prompt appears in the Enterprise-plan callout and requirements.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Bundle report

Total JS (gzip)

6.21 MiB (+0.1 KiB / +0.0%)

Eager graph (static-import closure per entrypoint)

Entrypoint Eager size Budget Modules
app 24.08 MiB (+0.1 KiB / +0.0%) report-only 5497
Largest modules in the app closure
Module Size
css ./node_modules/.pnpm/css-loader@5.2.7_webpack@5.101.3/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[1]!./node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.5.6_webpack@5.101.3/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[2]!./src/styles/global.css 709.9 KiB
./src/components/Stickers/Stickers.tsx 696.4 KiB
./.cache/caches/gatsby-plugin-mdx/mdx-scopes-dir/31a094f140f119e73085d847ae81b99b.js + 2 modules 507.6 KiB
./node_modules/.pnpm/@radix-ui+react-icons@1.3.2_react@18.3.1/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js 481.4 KiB
./node_modules/.pnpm/@codemirror+view@6.38.2/node_modules/@codemirror/view/dist/index.js 458.1 KiB
./node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js + 29 modules 395.1 KiB
./node_modules/.pnpm/@posthog+icons@0.36.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@posthog/icons/dist/posthog-icons.cjs.js 364.8 KiB
./node_modules/.pnpm/@posthog+icons@0.36.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@posthog/icons/dist/posthog-icons.es.js 354.8 KiB
./src/hooks/useCustomers.tsx + 54 modules 353.9 KiB
./node_modules/.pnpm/react-markdown@8.0.7_@types+react@16.14.66_react@18.3.1/node_modules/react-markdown/lib/react-markdown.js + 88 modules 351.4 KiB
./node_modules/.pnpm/cloudinary-core@2.14.0_lodash@4.17.21/node_modules/cloudinary-core/cloudinary-core.js 281.9 KiB
./node_modules/.pnpm/@codesandbox+sandpack-react@2.20.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@codesandbox/sandpack-react/dist/index.mjs 266.6 KiB
./src/components/ProductComparisonTable/index.tsx + 114 modules 264.0 KiB
./node_modules/.pnpm/d3@7.9.0/node_modules/d3/src/index.js + 208 modules 247.4 KiB
./src/components/Pricing/PricingSlider/Slider.tsx + 87 modules 239.9 KiB

Eager-graph budgets are report-only until a baseline is established. Sizes are gzip of public/**/*.js; eager size is webpack module source bytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants