Custom OAuth callback times out when Merge roles from SSO is enabled
メンテナーはふだん 1 日以内に返信
@Pantkartik がすでに取り組んでいます。
2026年11月28日 から。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
oauth.ts:73 から開始します。そこでは settings.rolesToSync.split(',') が呼び出されています。ロールの結合ロジックを更新して undefined の rolesToSync を処理できるようにし、未処理の TypeError や HTTP 504 が発生しない.Custom OAuth による Authentik へのログインが成功することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Description:
Custom OAuth authentication fails when Merge roles from SSO is enabled and rolesToSync is undefined.
Steps to reproduce:
- Configure Custom OAuth using Authentik.
- Enable Merge roles from SSO with
rolesToSyncundefined. - Attempt authentication using Authentik.
Expected behavior:
Successful authentication and login to Rocket.Chat.
Actual behavior:
Authentik authentication, token exchange and user information retrieval succeed. Rocket.Chat throws an unhandled TypeError, resulting in a 504 Gateway Timeout.
Server Setup Information:
- Version of Rocket.Chat Server: 9.0.0
- License Type: Starter
- Number of Users: 10
- Operating System: Debian
- Deployment Method: Docker Compose
- Number of Running Instances: 1
- DB Replicaset Oplog: Replica set configured
- NodeJS Version: Not recorded
- MongoDB Version: Not recorded
Client Setup Information
- Desktop App or Browser Version: Chrome
- Operating System: Linux
Additional context
Authentication was also failing under Rocket.Chat 8.8, prompting the upgrade to 9.0.0. Whether the underlying defect was identical remains unverified.
The affected code assumes rolesToSync is a string:
settings.rolesToSync.split(',').map((role) => role.trim())
The stored configuration contains mergeRoles: true and rolesToSync: undefined.
Verified workaround: Disable Merge roles from SSO, save and refresh OAuth services. Authentication then succeeds.
Relevant logs:
Server exception, reproduced three times:
TypeError: Cannot read properties of undefined (reading 'split')
at oauth.ts:73:26
Associated with an unhandled promise rejection.
Reverse proxy: HTTP 504 at /_oauth/authentik.
Authentik token exchange and user information endpoints both returned HTTP 200.
- 主要言語
- TypeScript
- スター
- 46.6k
- フォーク
- 14.2k
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 302
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RocketChat/Rocket.Chat のほかの issue
-
ModerationConsoleTable renders blank area instead of error state when query fails対応中かも @Siddharth-singh18 が 2 日前に担当しました。 オープンtype: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
RocketChat/Rocket.Chat#44109 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Composer clears message text when the first uploaded file's media confirmation fails対応中かも @Sravan-0802 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
RocketChat/Rocket.Chat#44087 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
Subsequent OAuth logins overwrite persisted service fields (e.g. refreshToken) with null対応中かも @ayushbuilds-code が 4 日前に担当しました。 オープンtype: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
RocketChat/Rocket.Chat#44053 · コメント 4 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Heads-up: Issue Dedupe workflow pins claude-sonnet-4-5-20250929, which Anthropic retires Nov 30対応中かも @Ravichandra531 が 6 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
RocketChat/Rocket.Chat#43944 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
DDP `encodeResult` drops falsy method return values (`false`, `0`, `""`, `null`)対応中かも @Arnav-0206 が 9 日前に担当しました。 オープンtype: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
RocketChat/Rocket.Chat#43925 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
RocketChat/Rocket.Chat の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
zabuton-app/meguri#875 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
iruzen-dono/workless#117 ·
メンテナーはふだん 1 日以内に返信
-
area:api area:web wave wave:trivial
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
vetro-protocol/vetro-monorepo#1321 ·
メンテナーはふだん 1 日以内に返信