Google OAuth - http redirect issue - ODOO 18.0

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
docker

調査の方向性

まず、Google のエラーに表示される redirect_uri と Google Cloud Console に登録されている OAuth リダイレクト URI を比較し、その後、/google_gmail/confirm に対するリバースプロキシの HTTP-to-HTTPS 動作を確認します。生成されたリダイレクトが正しい HTTPS URL を使用し、400 の不一致エラーや forbidden 応答なしに Gmail 接続が完了すれば完了です。

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

説明

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.

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

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

odoo/docker のほかの issue

odoo/docker の issue をすべて見る

似ている issue

Security の issue をもっと見る

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

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