Sign-in: return to a Fabric MCP authorization after sign-in, including Google and GitHub

オープン
#2,101 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

Read useCloudSignIn.ts, CheckOAuth.tsx, routes.ts, GoogleAuthenticationButton.tsx, and GitHubAuthenticationButton.tsx to trace how redirects are validated and passed through sign-in. Start by checking the existing in-app redirect flow, then follow the Google and GitHub callback path. Done when the allowlisted MCP authorization URL survives both sign-in methods and an already signed-in user continues to the target.

索引モデルが issue の本文から書いたものです。

説明

Why

The Fabric MCP connector (#2098) sends signed-out users to /#/sign-in to sign in, and they then need to come back to /oauth/mcp/authorize?… on the same origin. Today:

  • redirect is only ever an in-app hash path passed to navigate({to}), checked by redirect.startsWith('/') in useCloudSignIn.ts, CheckOAuth.tsx and routes.ts.
  • The Google and GitHub buttons always send /#/check-oauth with no redirect (GoogleAuthenticationButton.tsx, GitHubAuthenticationButton.tsx), so an OAuth sign-in loses the target even for in-app paths.

Proposal

  • Accept a redirect that matches ^/oauth/mcp/authorize(\?|$) exactly, and follow it with a full-page window.location.assign. Allowlist that prefix only, with no other server paths and no //.
  • Carry redirect through the Google and GitHub buttons into /#/check-oauth. That also fixes the in-app case.
  • Already signed in at /#/sign-in?redirect=… → continue straight to the target, as the in-app case already does.

Until this lands, the connector's fallback is to have the user click Connect again in Claude after signing in.

🤖 Generated by Claude Code (Claude Opus 5.5); posted via @dawsontoth.

Part of HarperFast/studio#2098, under the epic HarperFast/harper#2102 (MCP server & OpenAPI schema generation).

主要言語
TypeScript
スター
5
フォーク
4
平均マージ
2日 13時間
マージ済み PR(30日)
60

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

HarperFast/studio のほかの issue

HarperFast/studio の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。