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

Aperta
#2,101 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
TypeScript
Stelle
5
Fork
4
Merge medio
2g 13h
PR unite (30g)
60

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di HarperFast/studio

Tutte le issue di HarperFast/studio

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.