GitHub OAuth connection fails with "redirect_uri is not associated with this application"
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 22/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Reproduction is fully described, but the failing piece lives in the deployed GitHub OAuth app registration rather than obviously in this repository. Start by locating where the authorize URL is built and where the /oauth/2/callback route is registered, then compare the computed redirect URI against the callback configured for the cloud GitHub application. Done means the Connect button lands on GitHub's consent screen and returns to a working callback; if the fix is only a GitHub app setting, document that instead of changing code.
索引モデルが issue の本文から書いたものです。
説明
Description
I am unable to connect my GitHub account to OpenHands Cloud.
When navigating to the Integrations page and clicking Connect under GitHub, I am redirected to GitHub, where the following error is displayed:
The redirect_uri is not associated with this application.
The application might be misconfigured or could be trying to redirect you to a website you weren't expecting.
This issue occurs consistently.
Environment
- Platform: OpenHands Cloud
- URL: https://app.all-hands.dev
- Integration: GitHub
- Integrations page: https://app.all-hands.dev/settings/integrations
Steps to reproduce
- Navigate to https://app.all-hands.dev/settings/integrations.
- Locate the GitHub integration.
- Click Connect.
- Get redirected to GitHub.
- GitHub displays the OAuth redirect URI error.
Expected behaviour
I should be redirected to GitHub's authorization page, be able to authorize OpenHands, and successfully connect my GitHub account.
Actual behaviour
GitHub rejects the OAuth authorization request and displays:
`The redirect_uri is not associated with this application.
The application might be misconfigured or could be trying to redirect you to a website you weren't expecting.`
The authorization URL I observed, with sensitive values redacted, is:
https://github.com/login/oauth/authorize?client_id=REDACTED&redirect_uri=https%3A%2F%2Fapp.all-hands.dev%2Foauth%2F2%2Fcallback&response_type=code&state=REDACTED&scope=repo+user%3Aemail+workflow
Additional observations
- Connecting my GitLab account through the same OpenHands Cloud integrations page works without any issues.
- The issue appears isolated to the GitHub integration.
- The problem occurs before GitHub authorization can be completed.
- This issue is not resolved by (1) logging out and logging in again; (2) clearing cookies; (3) using a different browser.
Existing issues
I checked the existing issues and could not find one describing this specific error.
Possible cause and requested investigation
This appears to be an OAuth configuration or callback URL mismatch involving the GitHub application used by OpenHands Cloud.
Could you please investigate:
- Whether the GitHub OAuth application's registered callback URL matches the actual
redirect_uribeing sent in the authorization request. - Whether the callback URL is correctly configured in the GitHub application used by OpenHands Cloud.
- Whether the authorization request is generating the correct redirect URI.
- Whether any recent changes to the GitHub integration or OAuth configuration could have introduced this issue.
I suspect this may need to be addressed in the OpenHands Cloud GitHub OAuth application configuration rather than through changes to individual users' GitHub accounts.
Thank you.
- 主要言語
- Python
- スター
- 95
- フォーク
- 53
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 146
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenHands/OpenHands-Cloud のほかの issue
-
Bundled MinIO permanently disables root access on high-core-count hosts (breaks the minio-post-job bucket/svcacct bootstrap)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
OpenHands/OpenHands-Cloud#1490 ·
メンテナーはふだん 1 日以内に返信
-
Misleading `automationBaseUrl` example in automation chart values.yaml (includes `/api/automation`)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
OpenHands/OpenHands-Cloud#1330 ·
メンテナーはふだん 1 日以内に返信
-
Remove bundled VSCode settings from Cloud runtime charts再び着手できるかも @neubig が 44 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
OpenHands/OpenHands-Cloud#1283 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
reviewed
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
OpenHands/OpenHands-Cloud#788 ·
メンテナーはふだん 1 日以内に返信
-
replicated reviewed
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
OpenHands/OpenHands-Cloud#725 ·
メンテナーはふだん 1 日以内に返信
OpenHands/OpenHands-Cloud の issue をすべて見る
似ている issue
-
run_gate loads a custom tasks file from outside the working directory対応中かも @Ru0k3 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MakazhanAlpamys/Soup#3189 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
nautechsystems/nautilus_trader#5741 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
huggingface/datasets#9128 ·
メンテナーはふだん 1 日以内に返信