Meta tags:
description= An AI Gateway, registry, and proxy that sits in front of any MCP, A2A, or REST/gRPC APIs, exposing a unified endpoint with centralized discovery, guardrails and management. Optimizes Agent & Tool calling, and supports plugins. - fix: forward stored user OAuth tokens to REST tools by jstar0 · Pull Request #5643 · IBM/mcp-context-forge;
Headings (most frequently used words):
to, fix, user, oauth, rest, mcp, uh, oh, saved, searches, forward, stored, tokens, tools, navigation, context, forge, jstar0, gateway, footer, search, code, repositories, users, issues, pull, requests, provide, feedback, 5643, menu, use, filter, your, results, more, quickly, 5643jstar0, wants, merge, commit, intoibm, mainibm, mainfrom, tokenjstar0, tokencopy, head, branch, name, clipboard, conversation, related, issue, summary, reproduction, steps, root, cause, changes, reviewability, verification, checklist, compliance, commented, jul, 15, 2026, reviewers, assignees, labels, projects, milestone, development, participant,
Text of the page (most frequently used words):
the (28), code (22), and (22), rest (19), token (19), this (16), oauth (16), #gateway (14), user (13), mcp (13), #stored (12), services (12), github (11), applied (11), from (11), tests (11), security (10), mcpgateway (10), review (9), jstar0 (9), fix (9), all (9), unit (9), pull (8), tools (8), test_tool_service (8), you (7), suggestion (7), cannot (7), suggestions (7), while (7), for (7), run (7), authorization (7), can (6), that (6), not (6), request (6), merge (6), changes (6), reload (6), requested (6), pytest (6), lint (6), context (6), forge (6), ibm (6), your (6), enterprise (6), view (6), issues (5), owner (5), awaiting (5), sign (5), open (5), passed (5), tool (5), with (5), main (5), search (5), community (4), navigation (4), please (4), existing (4), add (4), commit (4), was (4), authorization_code (4), msureshkumar88 (4), ja8zyjits (4), lang (4), akshay (4), brian (4), hussey (4), crivetimihai (4), file (4), signed (4), forward (4), tokens (4), make (4), quick (4), rest_gateway_oauth_authorization_code (4), branch (4), copy (4), quality (4), support (4), 2026 (3), line (3), has (3), change (3), batch (3), one (3), per (3), there (3), error (3), loading (3), page (3), projects (3), conversation (3), hidden (3), characters (3), unicode (3), credentials (3), plugin (3), level (3), behavior (3), are (3), issue (3), available (3), invoke (3), application (3), name (3), 5643 (3), insights (3), actions (3), requests (3), settings (3), another (3), tab (3), window (3), refresh (3), session (3), saved (3), documentation (3), use (3), feedback (3), grade (3), features (3), copilot (3), platform (3), solutions (3), explore (3), manage (2), footer (2), check (2), must (2), create (2), single (2), were (2), may (2), development (2), milestone (2), none (2), yet (2), bidirectional (2), more (2), star (2), message (2), client (2), paths (2), changed (2), files (2), pass (2), repository (2), test (2), locally (2), service (2), module (2), adjacent (2), verification (2), tool_service (2), invoke_tool_rest_oauth (2), invoke_tool_mcp_oauth_client_credentials (2), prepare_rust_mcp_tool_execution_oauth (2), formatting (2), complete (2), they (2), out (2), clear (2), validation (2), invocation (2), header (2), pre (2), provide (2), when (2), storage (2), bearer (2), email (2), flows (2), but (2), plan (2), upstream (2), consent (2), wants (2), into (2), head (2), clipboard (2), discussions (2), appearance (2), cancel (2), see (2), searches (2), repositories (2), business (2), advanced (2), developer (2), topics (2), source (2), resources (2), customer (2), devops (2), app (2), perform, action, time, share, personal, information, cookies, contact, docs, status, privacy, terms, inc, right, now, back, later, queued, multi, comments, pending, reviews, been, marked, resolved, outdated, order, valid, applying, deleted, lines, supported, only, viewing, subset, closed, invalid, because, made, participant, bug, bound, longer, receive, regression, successfully, merging, close, these, labels, assigned, assignees, least, approving, required, reviewers, already, have, account, comment, join, free, show, contains, text, interpreted, compiled, differently, than, what, appears, below, editor, reveals, learn, about, july, owners, off, king, mcxin, gmail, com, 787669f, reactions, sorry, something, went, wrong, protocol, facing, contract, compliance, secrets, committed, added, missing, injected, auth, formatted, ruff, black, isort, checklist, full, coverage, suites, focused, remains, broader, production, 395, regressions, result, command, assisted, understand, explain, generated, included, validate, unrelated, bugs, improvements, kept, linked, labeled, triage, purpose, reviewability, scope, issuer, exchange, unchanged, fail, guidance, provided, allow, plugins, matching, preserving, headers, retrieve, authenticated, handled, registration, requires, configured, lookup, existed, rust, execution, absent, toolservice, invoke_tool, root, cause, current, does, call, sent, without, tokenstorageservice, get_user_token, attach, flow, configure, grant_type, auth_type, reproduction, steps, restores, path, prevents, unauthenticated, calls, neither, nor, provides, attached, did, inherit, access, api, therefore, received, even, after, had, completed, summary, 5614, closes, related, contributor, markdown, link, commented, jul, checks, commits, additional, options, 220, 849, fork, 760, notification, notifications, public, dismiss, alert, switched, accounts, resetting, focus, qualifiers, our, query, filter, results, quickly, submit, include, address, contacted, read, every, piece, take, input, very, seriously, syntax, tips, users, jump, pricing, premium, ons, powered, collections, trending, archive, program, stars, accelerator, maintainer, lab, programs, fund, developers, sponsors, partners, trust, center, forum, skills, ebooks, reports, events, webinars, stories, type, software, topic, industries, government, manufacturing, financial, healthcare, industry, cases, devsecops, modernization, case, nonprofits, startups, small, medium, teams, enterprises, company, size, marketplace, changelog, blog, why, stop, leaks, before, start, secret, protection, secure, build, find, vulnerabilities, enforce, track, work, instant, dev, environments, codespaces, automate, any, workflow, workflows, integrate, external, registry, new, direct, agents, write, better, creation, toggle, menu, skip, content,
Text of the page (random words):
fix forward stored user oauth tokens to rest tools by jstar0 pull request 5643 ibm mcp context forge github skip to content navigation menu toggle navigation sign in appearance settings platform ai code creation github copilot write better code with ai github copilot app direct agents from issue to merge mcp registry new integrate external tools developer workflows actions automate any workflow codespaces instant dev environments issues plan and track work code review manage code changes code quality enforce quality at merge application security github advanced security find and fix vulnerabilities code security secure your code as you build secret protection stop leaks before they start explore why github documentation blog changelog marketplace view all features solutions by company size enterprises small and medium teams startups nonprofits by use case app modernization devsecops devops ci cd view all use cases by industry healthcare financial services manufacturing government view all industries view all solutions resources explore by topic ai software development devops security view all topics explore by type customer stories events webinars ebooks reports business insights github skills support services documentation customer support community forum trust center partners view all resources open source community github sponsors fund open source developers programs security lab maintainer community accelerator github stars archive program repositories topics trending collections enterprise enterprise solutions enterprise platform ai powered developer platform available add ons github advanced security enterprise grade security features copilot for business enterprise grade ai features premium support enterprise grade 24 7 support pricing search or jump to search code repositories users issues pull requests search clear search syntax tips provide feedback we read every piece of feedback and take your input very seriously include my email address so i can be contacted cancel submit feedback saved searches use saved searches to filter your results more quickly name query to see all available qualifiers see our documentation cancel create saved search sign in sign up appearance settings resetting focus you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message uh oh there was an error while loading please reload this page ibm mcp context forge public notifications you must be signed in to change notification settings fork 760 star 4 1k code issues 849 pull requests 220 discussions actions projects security and quality 4 insights additional navigation options code issues pull requests discussions actions projects security and quality insights fix forward stored user oauth tokens to rest tools 5643 open jstar0 wants to merge 1 commit into ibm main ibm mcp context forge main from jstar0 fix rest gateway user oauth token jstar0 mcp context forge fix rest gateway user oauth token copy head branch name to clipboard conversation commits 1 1 checks files changed open fix forward stored user oauth tokens to rest tools 5643 jstar0 wants to merge 1 commit into ibm main ibm mcp context forge main from jstar0 fix rest gateway user oauth token jstar0 mcp context forge fix rest gateway user oauth token copy head branch name to clipboard conversation jstar0 commented jul 15 2026 copy link copy markdown contributor related issue closes 5614 summary rest tools attached to an oauth gateway did not inherit the stored per user access token for authorization_code flows the upstream rest api therefore received no authorization header even after the user had completed consent this change restores the gateway level stored token path for rest tools and prevents unauthenticated calls when neither token storage nor a pre invoke plugin provides credentials reproduction steps configure a gateway with auth_type oauth and grant_type authorization_code complete the consent flow so a token is stored for the application user attach a rest tool to that gateway and invoke it on current main the rest branch does not call tokenstorageservice get_user_token and the upstream request is sent without the stored bearer token root cause toolservice invoke_tool handled tool level oauth in the rest branch but tool registration requires oauth to be configured on the gateway gateway authorization code token lookup existed in the mcp and rust execution plan paths but was absent from rest invocation changes retrieve the stored gateway token by gateway id and authenticated application user email for rest authorization_code flows add the stored token as authorization bearer while preserving existing tool headers allow pre invoke plugins to provide authorization when token storage has no token matching the existing mcp behavior fail locally with the existing authorization guidance if no token or plugin provided authorization header is available oauth scope validation issuer validation token exchange client credentials and mcp invocation behavior are unchanged reviewability this pr has one clear purpose the linked issue is not labeled triage unrelated bugs or improvements are kept out of this pr tests are included with the code they validate if ai assisted i understand and can explain the generated changes verification check command result rest gateway authorization code regressions uv run pytest tests unit mcpgateway services test_tool_service py q k rest_gateway_oauth_authorization_code 3 passed adjacent rest mcp oauth behavior uv run pytest tests unit mcpgateway services test_tool_service py q k invoke_tool_rest_oauth or rest_gateway_oauth_authorization_code or invoke_tool_mcp_oauth_client_credentials or prepare_rust_mcp_tool_execution_oauth 11 passed complete tool service unit module uv run pytest tests unit mcpgateway services test_tool_service py q 395 passed production file lint and formatting make lint quick mcpgateway services tool_service py passed test file lint and formatting make lint quick tests unit mcpgateway services test_tool_service py passed uv run pytest tests unit mcpgateway services test_tool_service py q k rest_gateway_oauth_authorization_code uv run pytest tests unit mcpgateway services test_tool_service py q k invoke_tool_rest_oauth or rest_gateway_oauth_authorization_code or invoke_tool_mcp_oauth_client_credentials or prepare_rust_mcp_tool_execution_oauth uv run pytest tests unit mcpgateway services test_tool_service py q make lint quick mcpgateway services tool_service py make lint quick tests unit mcpgateway services test_tool_service py the full repository test and coverage suites were not run locally the focused service module and all adjacent oauth tests pass ci remains the broader repository level verification checklist code formatted and changed files pass ruff black and isort tests added for stored token missing token and plugin injected auth paths no secrets or credentials committed mcp compliance no protocol message or client facing mcp contract changes sorry something went wrong uh oh there was an error while loading please reload this page all reactions fix forward stored user oauth tokens to rest tools 787669f signed off by king star mcxin y gmail com jstar0 requested review from lang akshay brian hussey crivetimihai ja8zyjits and msureshkumar88 as code owners july 15 2026 20 58 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 show hidden characters sign up for free to join this conversation on github already have an account sign in to comment reviewers crivetimihai awaiting requested review from crivetimihai crivetimihai is a code owner brian hussey awaiting requested review from brian hussey brian hussey is a code owner lang akshay awaiting requested review from lang akshay lang akshay is a code owner ja8zyjits awaiting requested review from ja8zyjits ja8zyjits is a code owner msureshkumar88 awaiting requested review from msureshkumar88 msureshkumar88 is a code owner at least 1 approving review is required to merge this pull request assignees no one assigned labels none yet projects none yet milestone no milestone development successfully merging this pull request may close these issues bug rest tools bound to an oauth gateway no longer receive the stored per user token authorization_code regression vs v1 0 2 uh oh there was an error while loading please reload this page 1 participant 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 footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|