feat(ui): allow non-owner users to authorize on accessible OAuth gateways#3935
Open
kimsehwan96 wants to merge 1 commit intoIBM:mainfrom
Open
feat(ui): allow non-owner users to authorize on accessible OAuth gateways#3935kimsehwan96 wants to merge 1 commit intoIBM:mainfrom
kimsehwan96 wants to merge 1 commit intoIBM:mainfrom
Conversation
…ways Non-owner team members and public gateway users could not see the Authorize button, preventing them from completing the OAuth flow and storing their own tokens. The backend already supports per-user OAuth tokens (keyed by gateway_id + app_user_email), but the UI gated the Authorize button behind can_modify which requires owner/admin status. Introduce can_authorize — a broader visibility check that includes team members and public gateway users — and apply it to the Authorize and Fetch Tools buttons while keeping Edit/Deactivate/Delete behind can_modify. Closes: IBM#3934 Signed-off-by: kimsehwan96 <sktpghks138@gmail.com>
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.
🔗 Related Issue
Closes #3934
📝 Summary
Non-owner team members and public gateway users cannot see the "🔐 Authorize" button on OAuth gateways, preventing them from completing the OAuth flow. The backend already stores tokens per-user (oauth_tokens.app_user_email), so this is purely a UI visibility fix.
🏷️ Type of Change
🧪 Verification
make lintmake testmake coverage✅ Checklist
make black isort pre-commit)📓 Notes (optional)
Changed files:
Visibility logic:
Screenshot as team member but not the mcp owner.
(AWS Docs MCP set as no auth type)
E2E Verification (manual):