Hosted Account Experience breaks OAuth: consent page crash (RSC null deref) + COOP severs popup clients
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- authentication, security
Línea de trabajo
Empieza reproduciendo el flujo del popup de OpenAI contra la Account Experience alojada e inspecciona las cabeceras de respuesta de la URL de inicio de sesión con curl. Después, sigue la página Reauthenticate en la UI alojada usando el error de consola indicado t.reason.enqueueModel. Se considera terminado cuando el popup conserva su opener durante la autorización y la página alojada se completa sin la desreferencia nula indicada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
https://tender-satoshi-rtd7nibdhq.projects.oryapis.com
Describe the bug
OpenAI's public plugin-submission flow requires an MCP tool scan before a plugin can be submitted for review. The scanner successfully discovers our MCP protected-resource metadata, then starts OAuth authorization in a popup.
As soon as the popup navigates to Ory Network's hosted Account Experience, the OpenAI parent page reports:
MCP authorization failed: OAuth flow canceled.
The popup was not canceled or closed. It remains open on Ory's "Reauthenticate" page at https://auth.themolt.net/login?flow=….
The hosted response contains:
Cross-Origin-Opener-Policy: same-origin
Ory-Network-Ingress: T
That COOP policy separates the cross-origin popup into another browsing-context group and severs its opener relationship. OpenAI consequently observes the popup as closed/canceled. No authenticated MCP tools/list request occurs, so the mandatory scan remains incomplete and submission is blocked.
When continuing the login manually, the hosted Account Experience has also displayed:
This page couldn't load
Reload to try again, or go back.
with this browser console error:
TypeError: null is not an object (evaluating 't.reason.enqueueModel')
Could Ory change OAuth login/consent pages to Cross-Origin-Opener-Policy: same-origin-allow-popups, expose a project-level setting for this header, or document another supported configuration for OAuth popup clients? Please also investigate the hosted UI crash.
Reproducing the bug
- Configure an MCP server protected by Ory Network OAuth2/OIDC and dynamic client registration.
- In OpenAI's public plugin-submission portal, provide the MCP URL and select Scan Tools. This scan is mandatory before Submit for Review is enabled.
- OpenAI successfully requests
GET /.well-known/oauth-protected-resource/mcpand determines OAuth is required. - Select Authorize MCP → Continue.
- OpenAI opens the authorization flow in a popup.
- The popup navigates to
https://auth.themolt.net/login?flow=…and shows Ory's Reauthenticate UI. - The parent OpenAI page immediately reports
MCP authorization failed: OAuth flow canceled., while the popup remains open. - If login is continued manually, the Ory-hosted page may instead render This page couldn't load with the
t.reason.enqueueModelerror.
Expected: the popup remains connected to its opener, completes authorization, returns to OpenAI's callback, and allows the MCP tool scan to call tools/list.
Actual: the opener relationship is severed on navigation to the hosted Account Experience, OpenAI treats OAuth as canceled, and the required scan cannot run.
Relevant log output
OpenAI parent page:
MCP authorization failed: OAuth flow canceled.
Ory Account Experience error:
This page couldn't load
Reload to try again, or go back.
Browser console:
TypeError: null is not an object (evaluating 't.reason.enqueueModel')
Observed response headers from curl -I https://auth.themolt.net/login:
cross-origin-opener-policy: same-origin
ory-network-ingress: T
MCP-side sequence:
POST /mcp -> 415 initial scanner probe
GET /.well-known/oauth-protected-resource/mcp -> 200
No authenticated /mcp request follows.
Relevant configuration
Ory Network project:
https://tender-satoshi-rtd7nibdhq.projects.oryapis.com
Custom domain:
https://auth.themolt.net
DNS (OVH, direct CNAME; no customer-controlled proxy):
auth.themolt.net CNAME tender-satoshi-rtd7nibdhq.projects.oryapis.com
MCP server:
https://mcp.themolt.net/mcp
OAuth client:
- dynamic client registration
- authorization_code and refresh_token grants
- PKCE-compatible public client
- ChatGPT callback redirect URI
- token_endpoint_auth_method: none
Version
Ory Network hosted Account Experience, current on 2026-09-01
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
Ory Network
Additional Context
The same MCP server and Ory authorization flow work through the normal ChatGPT connector. Discovery, dynamic registration, redirect URI registration, PKCE, and the authorization-code grant configuration are working. The failure is specific to OpenAI's mandatory plugin-submission scanner, which monitors a popup lifecycle.
Related but distinct: https://github.com/ory/elements/issues/587 reports a hosted consent redirect failure. This report concerns the hosted Account Experience/Network response header severing an OAuth popup, plus the separate t.reason.enqueueModel runtime failure.
The issue was drafted with Codex from captured browser, HTTP-header, OAuth-client, and server-log evidence.
- Lenguaje dominante
- Shell
- Estrellas
- 96
- Forks
- 8
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ory/network
-
Updating native registration flow with OIDC ID token for existing identity returns breaking responseAbiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Ory Account Experience (hosted UI) registration trait setup via creation of registration flowAbiertofeat
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
-
selfservice.flows.login.style reverts to identifier_first despite explicitly setting passwordAbiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
-
feat
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
-
User settings flow "back" button takes you to homepageQuizá libre de nuevo @jonas-jonas la tomó hace 382 días y no hay ningún pull request abierto. Abiertobug
Todos los issues de ory/network
Issues similares
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
kristofdegrave/homeassistant-smart-charging#1413 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
a2aproject/A2A#2262 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
modelstudioai/cli#232 ·
-
[Bug]: launchd osascript "do shell script" wrapper delays external display wake ~10s on macOS 27Abiertocomp/gateway P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NousResearch/hermes-agent#123595 ·
Los mantenedores suelen responder en 1 día
-
area:bash bug has repro
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
anthropics/claude-code#97353 · 1 reacción ·
Los mantenedores suelen responder en 1 día