GitHub OAuth connection fails with "redirect_uri is not associated with this application"
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 22/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- authentication
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 95
- Fork
- 53
- Merge trung bình
- 1 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 146
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenHands/OpenHands-Cloud
-
Bundled MinIO permanently disables root access on high-core-count hosts (breaks the minio-post-job bucket/svcacct bootstrap)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
OpenHands/OpenHands-Cloud#1490 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Misleading `automationBaseUrl` example in automation chart values.yaml (includes `/api/automation`)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
OpenHands/OpenHands-Cloud#1330 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Remove bundled VSCode settings from Cloud runtime chartsCó thể làm lại được @neubig đã nhận 44 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
OpenHands/OpenHands-Cloud#1283 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
reviewed
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
OpenHands/OpenHands-Cloud#788 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
replicated reviewed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
OpenHands/OpenHands-Cloud#725 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của OpenHands/OpenHands-Cloud
Issue tương tự
-
run_gate loads a custom tasks file from outside the working directoryCó thể đã có người làm @Ru0k3 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MakazhanAlpamys/Soup#3189 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
nautechsystems/nautilus_trader#5741 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
huggingface/datasets#9128 ·
Maintainer thường phản hồi trong vòng 1 ngày