Repository navigation
Conversation
andypalmi
self-requested a review
October 21, 2026 16:13
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9015 +/- ##
==========================================
+ Coverage 79.46% 79.50% +0.03%
==========================================
Files 475 475
Lines 26028 26054 +26
Branches 6938 6944 +6
==========================================
+ Hits 20684 20714 +30
+ Misses 5344 5340 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
Tested locally: OAuth unit and tools-plugin system tests pass, and a real MCP client completes connect, consent and token, then calls Reject route
app.put('/account/reject/:code', {
preHandler: verifyBrowserSession,
schema: {
Token endpoint defaults
if (requestObject.approvedBy !== requestObject.userId || !requestObject.expiresAt || !requestObject.toolPermissions) {
return badRequest(reply, 'access_denied', 'Access Denied')
}
...
teamIds: requestObject.teamIds,
grantExpiresAt: requestObject.expiresAt,
toolPermissions: requestObject.toolPermissionsAccessRequest.vue errors
<div v-if="error" class="text-red-600 text-sm mb-4">{{ error }}</div>data () {
return { error: null }
},
methods: {
async allowAccess () {
this.error = null
try {
const response = await client.put(`/account/complete/${this.$router.currentRoute.value.params.id}`, {})
window.location.href = response.data.redirect
} catch (err) {
this.error = err.response?.data?.description || 'Failed to process request. Please try again.'
}
},
// denyAccess: same, with /account/reject
} |
This branch was successfully deployed
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.
Fixes https://github.com/FlowFuse/security/issues/136
This improves the end-to-end user validation of the Oauth flows used by MCP and ff-tools-plugin.
GET /account/completewithPUT /account/completefor MCP/tools-plugin flows. Editor oauth flow still uses GET routes as they have additional protection round client_secret handling that is unavailable to the other flow types.I have tested locally that Editor access works as well as tools plugin. I have not verified the MCP routes - however test cases have been added across the board.