fix(designer): Fix OAuth adding extra parameters not specified on api registration#8798
Merged
fix(designer): Fix OAuth adding extra parameters not specified on api registration#8798
Conversation
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
✅ Risk Level
✅ What & Why
✅ Impact of Change
✅ Test Plan
✅ Contributors
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | Consider making the title slightly more explicit about client-side params filtered (optional) |
| Commit Type | ✅ | None needed |
| Risk Level | ✅ | None needed |
| What & Why | ✅ | Optionally reference key files changed |
| Impact of Change | ✅ | None needed |
| Test Plan | ✅ | Consider calling out specific test files |
| Contributors | ✅ | Optional: add additional contributors if any |
| Screenshots/Videos | Not applicable (no UI change) |
Final Message
This PR passes the PR title/body checks.
Quick actionable recommendations to improve clarity:
- Slightly rephrase the PR title to explicitly call out that client-side-only parameters (e.g.
token:tenantId) are being filtered and not sent to connector APIs. Example:fix(designer): do not send client-side connection parameters (e.g. token:tenantId) to connector APIs. - In the What & Why or Test Plan, call out the main files changed or tests added (e.g., createConnection/createConnectionInternal.tsx getConnectionParameterSetValues, and the updated unit tests under createConnection/test). This helps reviewers map description to diff quickly.
Everything else looks correct: commit type, risk label, tests added, and the described impact align with the code changes. No risk-level mismatch detected.
Please update the PR title if you'd like to adopt the suggested phrasing; otherwise this is good to proceed. Thank you for the thorough description and tests — these make the change easy to review and verify.
Last updated: Sat, 07 Feb 2026 03:13:57 GMT
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes an OAuth connection-creation issue in the Logic Apps Designer where client-side-only parameters could be sent to ARM/ApiHub, causing connector validation failures (e.g., ParameterNotDefined for token:tenantId).
Changes:
- Filter
connectionParametersSetvalues to only include keys defined in the selected parameter set (designer + designer-v2). - Add unit tests validating the filtering behavior (designer + designer-v2).
- Apply minor formatting-only adjustments in a v2 workflow test fixture and the v2 BJS workflow serializer.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| libs/designer/src/lib/ui/panel/connectionsPanel/createConnection/createConnectionInternal.tsx | Filters parameter-set payload keys to avoid sending undefined/extra parameters to the API. |
| libs/designer/src/lib/ui/panel/connectionsPanel/createConnection/test/createConnectionWrapper.spec.tsx | Adds tests to ensure invalid parameter keys are excluded when a valid-key list is provided. |
| libs/designer-v2/src/lib/ui/panel/connectionsPanel/createConnection/createConnectionInternal.tsx | Mirrors the parameter-set payload filtering fix in designer-v2. |
| libs/designer-v2/src/lib/ui/panel/connectionsPanel/createConnection/test/createConnectionWrapper.spec.tsx | Mirrors the unit tests for filtering behavior in designer-v2. |
| libs/designer-v2/src/lib/core/parsers/BJSWorkflow/test/agentMcpWorkflowDefinition.ts | Formatting-only updates to the agent MCP workflow test definition/expected output. |
| libs/designer-v2/src/lib/core/actions/bjsworkflow/serializer.ts | Formatting-only cleanup (no functional changes observed). |
libs/designer/src/lib/ui/panel/connectionsPanel/createConnection/createConnectionInternal.tsx
Show resolved
Hide resolved
.../designer-v2/src/lib/ui/panel/connectionsPanel/createConnection/createConnectionInternal.tsx
Show resolved
Hide resolved
|
📊 Coverage check completed. See workflow run for details. |
takyyon
approved these changes
Feb 7, 2026
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.
Commit Type
Risk Level
What & Why
We were passing back client side parameters back to the api. Some connectors such as Power Platform would then run into the error:
Call to ARM failed. Status code: 'BadRequest'. Response: '{"Code":"BadRequest","Message":"Input parameters are invalid. See details for more information. Details:errorCode: ParameterNotDefined. Message: Parameter 'token:tenantId' is not allowed on the connection since it was not defined as a connection parameter when the API was registered."Impact of Change
Test Plan
Contributors
@Eric-B-Wu
Screenshots/Videos