[POC] [DO NOT MERGE] feat(relier-demo): add OAuth relier demo site - #21222
Draft
vpomerleau wants to merge 1 commit into
Draft
vpomerleau wants to merge 1 commit into
vpomerleau wants to merge 1 commit into
Conversation
Because: - 123done shows none of what an OAuth flow yields: scopes, claims, tokens, or the callback. - Trying a different client or parameter set means editing config files or hand-building URLs. - We want a demo that can grow into the RP onboarding tool. This commit: - Adds packages/fxa-relier-demo, a public PKCE client with no server, built with esbuild and React, styled with Acorn/Nova tokens. - Offers scenario presets, an editable request builder with a live authorize URL, and a result view with a scope-to-claim matrix. - Registers two public dev clients on port 8090 in auth-server dev.json. - Allowlists the trusted demo client for prompt=none and scoped keys in content-server config.
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.
Because
This pull request
packages/fxa-relier-demo, a browser-only public PKCE client with no server, built with esbuild and React and styled with Acorn/Nova tokens.id_token, introspection, userinfo, a scope-to-claim matrix, and in-tab decryption of scoped keys.dev.json.Issue that this pull request solves
Closes: N/A
Checklist
Put an
xin the boxes that applyHow to review (Optional)
src/oauth.ts(PKCE, token exchange, verification),src/scopes.ts(scope-to-claim catalogue), the two dev-config edits.scenarios.ts,oauth.ts, then the screens.Screenshots (Optional)
Please attach the screenshots of the changes made in case of change in user interface.
Other information (Optional)
Run locally with
yarn start mzathennx start fxa-relier-demo, open http://localhost:8090.Verified end to end against the local stack: sign-up, sign-in with a known email, third-party consent, scoped keys, prompt=none without a session.
/fxa-security-reviewrun: no Critical, High, or Medium findings.Not in scope: server component, functional-test wiring, hosting, subscriptions. No ticket; this is a discussion artifact.
🤖 Generated with Claude Code