Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Hosted Account Experience breaks OAuth: consent page crash (RSC null deref) + COOP severs popup clients

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発

調査の方向性

まず、ホストされた Account Experience に対して OpenAI のポップアップフローを再現し、curl でログイン URL のレスポンスヘッダーを調べます。次に、報告されたコンソールエラー t.reason.enqueueModel を手がかりに、ホストされた UI の Reauthenticate ページを追跡します。ポップアップが認証中も opener を保持し、報告された null dereference なしにホストされたページが完了すれば完了です。

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

説明

bug
Preflight checklist
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
  1. Configure an MCP server protected by Ory Network OAuth2/OIDC and dynamic client registration.
  2. 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.
  3. OpenAI successfully requests GET /.well-known/oauth-protected-resource/mcp and determines OAuth is required.
  4. Select Authorize MCP → Continue.
  5. OpenAI opens the authorization flow in a popup.
  6. The popup navigates to https://auth.themolt.net/login?flow=… and shows Ory's Reauthenticate UI.
  7. The parent OpenAI page immediately reports MCP authorization failed: OAuth flow canceled., while the popup remains open.
  8. If login is continued manually, the Ory-hosted page may instead render This page couldn't load with the t.reason.enqueueModel error.

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.

主要言語
Shell
スター
96
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

ory/network のほかの issue

ory/network の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

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

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