Skip to content

React login-pkce sample + extraction tooling#1

Merged
ksroda-sa merged 11 commits into
mainfrom
feature/react-init
Apr 13, 2026
Merged

React login-pkce sample + extraction tooling#1
ksroda-sa merged 11 commits into
mainfrom
feature/react-init

Conversation

@ksroda-sa

@ksroda-sa ksroda-sa commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add React Auth Code + PKCE sample app (samples/react/login-pkce/)
  • Add snippet extraction and validation scripts (scripts/)
  • Add CI workflows for testing and extraction
  • Add CODEOWNERS, Dependabot config, and updated README

Note: The large diff line count is mostly from yarn.lock and .yarn/releases/yarn-4.13.0.cjs.

Test plan

  • cd samples/react/login-pkce && yarn dev starts the app
  • cd scripts && yarn all extracts and validates snippets
  • CI workflows pass on this PR

🤖 Generated with Claude Code

ksroda-sa and others added 2 commits April 9, 2026 10:03
Scaffold the repo with a React Auth Code + PKCE sample app,
snippet extraction/validation tooling, CI workflows, and
updated README with contribution guidelines.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Run Prettier before the build step so dist/ artifacts
don't trigger false formatting failures.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ksroda-sa
ksroda-sa marked this pull request as ready for review April 9, 2026 08:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a React “Authorization Code + PKCE” login sample and a small toolchain to extract/aggregate/validate snippet content for SecureAuth’s Quickstart dashboard, along with repo-level Yarn workspace + CI support.

Changes:

  • Added a React/Vite sample app (samples/react/login-pkce) with snippet tags and Vitest coverage.
  • Added snippet aggregation/extraction/structure-validation scripts and generated artifacts (snippet-manifest.yaml, snippets.json).
  • Added GitHub Actions workflow(s) plus repo housekeeping (workspaces, Dependabot, CODEOWNERS, README updates).

Reviewed changes

Copilot reviewed 27 out of 30 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
yarn.lock Adds workspace lockfile for the sample app + scripts.
package.json Defines Yarn workspaces for samples + scripts.
.yarnrc.yml Configures Yarn 4 + node-modules linker.
placeholder-map.yaml Defines placeholder substitutions for snippet extraction.
snippets.json Generated extracted snippets output.
snippet-manifest.yaml Generated aggregated manifest output.
scripts/package.json Tooling package for aggregate/extract/validate commands.
scripts/tsconfig.json TS config for running tooling scripts.
scripts/aggregate-manifests.ts Aggregates per-framework manifests into a single manifest.
scripts/extract-snippets.ts Extracts tagged steps from samples into snippets.json.
scripts/validate-structure.ts Validates sample folder structure + snippet tags exist.
samples/react/manifest.yaml React framework manifest and scenario metadata.
samples/react/login-pkce/package.json React sample dependencies and scripts (dev/build/test/format).
samples/react/login-pkce/tsconfig.json TS config for the React sample.
samples/react/login-pkce/vite.config.ts Vite dev server config for the sample.
samples/react/login-pkce/vitest.config.ts Vitest config for the sample.
samples/react/login-pkce/vitest.setup.ts Vitest setup importing jest-dom matchers.
samples/react/login-pkce/index.html Sample app HTML entrypoint.
samples/react/login-pkce/.env.example Sample env template for issuer/client/redirect/scopes.
samples/react/login-pkce/src/vite-env.d.ts Vite client types reference.
samples/react/login-pkce/src/index.tsx React entrypoint rendering <App />.
samples/react/login-pkce/src/App.tsx AuthProvider setup + snippet-tagged step content.
samples/react/login-pkce/src/App.test.tsx Basic UI-state tests with mocked react-oidc-context.
samples/react/login-pkce/README.md Sample usage + behavior description.
README.md Root repo documentation describing structure and contribution flow.
.github/workflows/test-js.yml CI to build/test sample projects under samples/**.
.github/workflows/extract.yml Main-branch workflow to regenerate/commit snippet artifacts.
.github/dependabot.yml Dependabot config for sample + scripts + GitHub Actions.
.github/CODEOWNERS Requires CIAM team review.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/extract-snippets.ts Outdated
Comment thread scripts/aggregate-manifests.ts Outdated
Comment thread scripts/validate-structure.ts Outdated
Comment thread scripts/extract-snippets.ts
Comment thread scripts/validate-structure.ts Outdated
Comment thread samples/react/login-pkce/src/App.tsx
Comment thread samples/react/login-pkce/README.md Outdated
Comment thread samples/react/login-pkce/README.md
Comment thread samples/react/manifest.yaml Outdated
Comment thread .github/workflows/extract.yml
@ksroda-sa
ksroda-sa requested a review from Copilot April 9, 2026 08:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 27 out of 30 changed files in this pull request and generated 10 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/extract-snippets.ts
Comment thread scripts/extract-snippets.ts
Comment thread scripts/extract-snippets.ts
Comment thread scripts/validate-structure.ts
Comment thread scripts/validate-structure.ts
Comment thread scripts/aggregate-manifests.ts
Comment thread samples/react/login-pkce/README.md
Comment thread samples/react/manifest.yaml
Comment thread snippet-manifest.yaml Outdated
Comment thread .github/workflows/extract.yml

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 27 out of 30 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread samples/react/login-pkce/src/App.test.tsx
Comment thread scripts/extract-snippets.ts
Comment thread .github/workflows/extract.yml
Comment thread .github/dependabot.yml
ksroda-sa and others added 2 commits April 9, 2026 11:36
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ksroda-sa
ksroda-sa marked this pull request as draft April 9, 2026 09:43
@ksroda-sa
ksroda-sa marked this pull request as ready for review April 9, 2026 09:43
ksroda-sa and others added 2 commits April 9, 2026 11:48
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ksroda-sa
ksroda-sa merged commit 75e5dc3 into main Apr 13, 2026
4 checks passed
@ksroda-sa
ksroda-sa deleted the feature/react-init branch April 13, 2026 08:08
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.

5 participants