Skip to content

Restore AuthDebuggerState.resource as URL#714

Merged
olaservo merged 5 commits into
mainfrom
halter73/restore-resource
Aug 20, 2025
Merged

Restore AuthDebuggerState.resource as URL#714
olaservo merged 5 commits into
mainfrom
halter73/restore-resource

Conversation

@halter73

@halter73 halter73 commented Aug 13, 2025

Copy link
Copy Markdown
Contributor

Not doing so prevents the resource URI from getting sent to the OAuth server's token endpoint during the "Quick OAuth Flow"

Not doing so prevents the resource URI from getting sent to the
OAuth server's token endpoint during the "Quick OAuth flow"
@halter73 halter73 requested a review from localden August 13, 2025 21:00
@github-actions

github-actions Bot commented Aug 13, 2025

Copy link
Copy Markdown
Contributor

🎭 Playwright E2E Test Results

✅  24 passed

Details

24 tests across 3 suites
 31.4 seconds
 bb95fcc
ℹ️  Test Environment: Ubuntu Latest, Node.js v22.18.0
Browsers: Chromium, Firefox

📊 View Detailed HTML Report (download artifacts)

@olaservo

Copy link
Copy Markdown
Member

Hi @halter73 @dend I think this PR which I was about to merge would invalidate the need for this one? Could you take a look before I merge it? Thanks!

@halter73

Copy link
Copy Markdown
Contributor Author

@olaservo I approved the other PR, because my main motivation is to fix the resource=undefined issue with the /token request, but I don't think it invalidates the need for this one. Either way, it's wrong to restore the AuthDebuggerState in a way that violates the type definition:

resource: URL | null;

Even if we decide to store the resource in a separate session state key, we should fix the AuthDebuggerState restore behavior so that it creates a valid object. And at that point, I don't know what the advantages of the 30 line change is over the 3 line change when you need to make the 3 line change anyway. Personally, I would probably just merge this PR over the other one for simplicities sake, but they're not mutually exclusive.

@olaservo

Copy link
Copy Markdown
Member

Thanks for the explanation @halter73 , looks like there is just a formatting failure in the CI: https://github.com/modelcontextprotocol/inspector/actions/runs/16999856050/job/48199242030?pr=714

@halter73

Copy link
Copy Markdown
Contributor Author

I ran prettier --write and pushed the changes to OAuthDebugCallback.tsx

@olaservo olaservo enabled auto-merge August 20, 2025 14:18
@olaservo olaservo merged commit ade237e into main Aug 20, 2025
8 checks passed
@olaservo olaservo deleted the halter73/restore-resource branch August 20, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants