Skip to content

Design architecture for OAuth flow for Schema Compilers & Tooling#397

Open
Aditya8369 wants to merge 1 commit into
Memact:mainfrom
Aditya8369:391
Open

Design architecture for OAuth flow for Schema Compilers & Tooling#397
Aditya8369 wants to merge 1 commit into
Memact:mainfrom
Aditya8369:391

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

Implemented the first concrete pieces of the OAuth-flow architecture mapping to the Context repo.

Changes made

Added OAuth→Consent mapping contract
File: src/consent/oauth-consent-mapping.mjs
Provides:
mapOauthGrantToContextPermissions(grant, mappingRules, contextPermissionsCatalog)
canCompilerWriteWithConsent({ mappingOutput, required_context_scope, operation, is_first_write_for_that_scope })
Added unit tests
File: test/oauth-consent-mapping.test.mjs
Covers scope mapping and first-write review gating.
Added documentation for integration contract
File: docs/oauth-flow-schema-compilers-contract.md
Explains how OAuth grants should be translated into Context permissions and how compiler writes should trigger review.

closes #391

@Aditya8369 Aditya8369 changed the title design architecture for oauth Design architecture for OAuth flow for Schema Compilers & Tooling Jul 12, 2026
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.

[Hard] Design architecture for OAuth flow for Schema Compilers & Tooling

1 participant