0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Cloudflare Zero Trust に Google Workspace を連携したときに出たエラー

Posted at

はじめに

Cloudflare Zero Trust では、さまざまな IdP を連携して、ID 情報やそれに紐づくグループ情報などが含まれた認証通信をプロキシし、その情報を使ったポリシー制御を行うことができます。

Google Workspace も連携先の一つです。

エラー

Failed to fetch group information from the identity provider
{}

image-20230124132437510

場合によっては、以下のエラーとなることもあるようですが、上記のものが再現できています。

Failed to exchange code for token
{
  "name": "google-apps",
  "idpType": "google-apps",
  "originalError": {
    "body": {
      "error": "invalid_grant",
      "error_description": "Bad Request"
    }
  }
}

image-20230124133848957

Got a non-200 status in oauth code exchange
{
  "body": {
    "error": "invalid_client",
    "error_description": "Unauthorized"
  }
}

解決法

Save すると出てくる finish setup のリンクをクリックしてセットアップを完了しましょう。

image-20230124132417092

image-20230124132725774

image-20230124132746416

テスト

その後、Test が通って正しく ID・グループ情報を取得できていることがわかります。

image-20230124132918189

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?