Repository navigation
fix/3112 - Postman import: OAuth2 Implicit Grant Type Silently Converted to Client Credentials on Import - #8113
Conversation
…ted to Client Credentials on Import
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughMaps Postman OAuth2 ChangesOAuth2 implicit grant support
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
…ed to Client Credentials on Import
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@packages/bruno-converters/tests/postman/postman-to-bruno/process-auth.spec.js`:
- Line 452: The test incorrectly asserts that requestObject.auth.oauth2.pkce is
true for the "implicit" grant; update the test in process-auth.spec.js to remove
or change that assertion (remove the expectation of pkce:true or assert it is
undefined/false) because postman-to-bruno.js's case 'implicit' only spreads
baseOAuth2Config and sets authorizationUrl/callbackUrl and never sets a pkce
field.
In `@tests/import/postman/import-oauth2-implicit-grant-type.spec.ts`:
- Line 25: Remove the debug console.log call that prints the test variable;
specifically delete the console.log('locators:', locators); statement from the
test file (import-oauth2-implicit-grant-type.spec.ts) so the test no longer
emits debug output—if you need to assert on locators, replace the log with an
appropriate expect/assert in the test rather than printing.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 6e655aed-a039-412e-b281-e2cdd7d570f7
📒 Files selected for processing (4)
packages/bruno-converters/tests/postman/postman-to-bruno/process-auth.spec.jstests/import/postman/fixtures/postman-import-oauth2-implicit-grant-type.jsontests/import/postman/import-oauth2-implicit-grant-type.spec.tstests/utils/page/locators.ts
✅ Files skipped from review due to trivial changes (1)
- tests/import/postman/fixtures/postman-import-oauth2-implicit-grant-type.json
…ted to Client Credentials on Import
…ted to Client Credentials on Import (usebruno#8113) * fix/3112 - Postman import: OAuth2 Implicit Grant Type Silently Converted to Client Credentials on Import * fix/3112: Postman import: OAuth2 Implicit Grant Type Silently Converted to Client Credentials on Import * fix/3112 - Postman import: OAuth2 Implicit Grant Type Silently Converted to Client Credentials on Import * fix/3112 * Implicit grant type * Oauth2 implicit grant type test case
Jira link: https://usebruno.atlassian.net/browse/BRU-3112
Description
Added Grant type implicit in postman-to-bruno.js and handled the case for same.
Contribution Checklist:
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.
Summary by CodeRabbit
New Features
Tests
Chores