Skip to content

Introduce client_credentials grant support in ThunderID Node.js SDK #32

Open
brionmario wants to merge 1 commit into
thunder-id:mainfrom
brionmario:flexible-vendor-config
Open

Introduce client_credentials grant support in ThunderID Node.js SDK #32
brionmario wants to merge 1 commit into
thunder-id:mainfrom
brionmario:flexible-vendor-config

Conversation

@brionmario

@brionmario brionmario commented Jul 16, 2026

Copy link
Copy Markdown
Member

Purpose

  • Added AuthService and InventoryService for machine-to-machine authentication.
  • Implemented client_credentials flow in the Node.js quickstart sample.
  • Updated environment variable handling in quickstart samples.
  • Enhanced UI for configuration prompts and inventory display.
  • Added .env.example for environment variable setup in Node.js quickstart.
  • Updated package.json scripts to use --env-file-if-exists for better handling of environment variables.

Approach

Related Issues

Related PRs

  • N/A

Checklist

  • Followed the contribution guidelines.
  • Manual test round performed and verified.
  • Documentation provided. (Add links if there are any)
  • Tests provided. (Add links if there are any)
    • Unit Tests
    • Integration Tests
  • Breaking changes. (Fill if applicable)
    • Breaking changes section filled.
    • breaking change label added.

Security checks

  • Followed secure coding standards in WSO2 Secure Coding Guidelines
  • Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.

…nd samples

- Added AuthService and InventoryService for machine-to-machine authentication.
- Implemented client_credentials flow in the Node.js quickstart sample.
- Updated environment variable handling in quickstart samples.
- Enhanced UI for configuration prompts and inventory display.
- Added .env.example for environment variable setup in Node.js quickstart.
- Updated package.json scripts to use --env-file-if-exists for better handling of environment variables.
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@brionmario, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 48 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 2c45d8bc-3c76-4c80-b525-d68aeaa53b1c

📥 Commits

Reviewing files that changed from the base of the PR and between a02382f and b59aa83.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (13)
  • packages/javascript/src/ThunderIDJavaScriptClient.ts
  • packages/javascript/src/constants/TokenConstants.ts
  • packages/javascript/src/models/config.ts
  • samples/express/quickstart/index.mjs
  • samples/express/quickstart/package.json
  • samples/express/quickstart/public/styles.css
  • samples/node/quickstart/.env.example
  • samples/node/quickstart/README.md
  • samples/node/quickstart/index.mjs
  • samples/node/quickstart/lib/AuthService.mjs
  • samples/node/quickstart/lib/InventoryService.mjs
  • samples/node/quickstart/lib/ui.mjs
  • samples/node/quickstart/package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant