Google OAuth - http redirect issue - ODOO 18.0

Đang mở
#536 18 bình luận 4 reaction 0 người được giao Xem trên GitHub

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
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
docker

Hướng nghiên cứu

Bắt đầu bằng cách so sánh redirect_uri được hiển thị trong lỗi của Google với URI chuyển hướng OAuth đã đăng ký trong Google Cloud Console, sau đó xem xét hành vi HTTP-to-HTTPS của reverse proxy cho /google_gmail/confirm. Hoàn thành khi chuyển hướng được tạo sử dụng đúng URL HTTPS và kết nối Gmail hoàn tất mà không có lỗi không khớp 400 hoặc phản hồi forbidden.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

It seems that clicking on Connect your Gmail accout in odoo fails because of a 400: redirect_uri_mismatch error.

I have attempted everything in the documents however something isn't lining up and I do not believe it is my configuration.

HTTP > HTTPS redirect is working correctly on my site/server through my reverse proxy

reply from Google:


You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy.

If you're the app developer, register the redirect URI in the Google Cloud Console.
Request details: redirect_uri=http://myhostnamehere.com/google_gmail/confirm flowName=GeneralOAuthFlow
[Related developer documentation](https://developers.google.com/identity/protocols/oauth2/web-server#authorization-errors-redirect-uri-mismatch)

If I try to visit: http://myhostnamehere.com/google_gmail/confirm

I do get the FORBIDDEN error message - however I have updated the google plug in as described in the documentation and that hasn't fixed it. This is also a new installation so I would assume the latest plug in would have been installed.

Forbidden
You don't have the permission to access the requested resource. It is either read-protected or not readable by the server.

I am stuck unfortuantely at this point to understand how to move forward.

Ngôn ngữ chính
Dockerfile
Star
1.2k
Fork
1.7k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của odoo/docker

Tất cả issue của odoo/docker

Issue tương tự

Thêm issue về Security

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.