docs: Document required OAuth scopes for the basic integration program#513
Draft
gewenyu99 wants to merge 1 commit into
Draft
docs: Document required OAuth scopes for the basic integration program#513gewenyu99 wants to merge 1 commit into
gewenyu99 wants to merge 1 commit into
Conversation
Add a README "OAuth Scopes" section documenting the full scope set the wizard's main basic integration program requests during the OAuth login flow, with a copy-pasteable list for granting scopes on the OAuth application in each region. Add `notebook:write` to `WIZARD_OAUTH_SCOPES` in constants.ts so the code actually requests the scope it now documents (the OAuth app was granted `notebook:write` in both US and EU for the notebooks MCP tools), and add a reverse pointer in its header comment back to the README. Plant a note in the wizard-development MAINTAINING-SKILLS reference so future agents keep the README scopes table in sync with the constant whenever scopes change. Generated-By: PostHog Code Task-Id: e5fcb78f-1b7c-4ce5-8ba4-c825400b2d98
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The set of OAuth scopes the wizard's main basic integration program requests at login wasn't documented anywhere operators can find it. The scopes are defined in
WIZARD_OAUTH_SCOPES(src/lib/constants.ts), but each one must also be granted on the PostHog OAuth application in every region — and there was no operator-facing reference for that list, nor a guard against the README drifting from the constant.notebook:writewas recently granted on the OAuth app (US + EU) for the notebooks MCP tools, but the wizard didn't actually request it.Changes
constants.tsas the source of truth.src/lib/constants.ts— addnotebook:writetoWIZARD_OAUTH_SCOPESso the code requests the scope it documents; add a reverse pointer in the header comment back to the README's section.MAINTAINING-SKILLS.md— note for future agents: whenever a scope changes inconstants.ts, update the README scopes table in the same change and confirm the scope is granted in every region.Test plan
pnpm build— passespnpm test— 760 tests pass (49 suites)pnpm fix— formatting cleannotebook:writescope at login.Created with PostHog Code