Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

Google Cloud

最終更新 Markdown で表示Agent セットアップ

このガイドでは、Cloudflare One で Google Cloud を SAML アプリケーションとして設定する方法を説明します。

前提条件

1. Cloudflare One に SaaS アプリケーションを追加する

  1. Cloudflare ダッシュボードZero Trust > Access controls > Applications を開きます。
  2. Create new application > SaaS application を選びます。
  3. ApplicationGoogle Cloud を選びます。
  4. 認証プロトコルで SAML を選びます。
  5. Add application を選びます。
  6. 次の項目を入力します。
    • Entity ID: google.com
    • Assertion Consumer Service URL: https://www.google.com/a/<your_domain.com>/acs
    • Name ID format: Email
  7. SSO endpointAccess Entity ID or IssuerPublic key をコピーします。
  8. アプリケーションの Access ポリシー を設定します。
  9. アプリケーションを保存します。

2. x.509 証明書を作成する

  1. Cloudflare One のアプリケーション設定から Public key をテキストエディターに貼り付けます。
  2. 証明書を -----BEGIN CERTIFICATE----------END CERTIFICATE----- で囲みます。
  3. 拡張子を .crt にして保存します。

3. Google Cloud で SSO プロバイダーを作成する

  1. Google Admin consoleSecurity > Authentication > SSO with third party IdP を開きます。
  2. Third-party SSO profile for your organization > Add SSO Profile を選びます。
  3. Set up SSO with third-party identity provider をオンにします。
  4. 次の情報を入力します。
    • Sign-in page URL: Cloudflare One のアプリケーション設定にある SSO endpoint。
    • Sign-out page URL: https://<team-name>.cloudflareaccess.com/cdn-cgi/access/logout<team-name> は Cloudflare One の チーム名 です。
    • Verification certificate: 2. x.509 証明書を作成する で保存した .crt ファイルをアップロードします。
  5. (任意)Use a domain specific issuer をオンにします。このオプションを選ぶと、Google は標準の google.com ではなく、Google Cloud ドメイン固有の issuer(google.com/a/<your_domain.com>)を送信します。

4. 連携を確認する

シークレット(Incognito)ウィンドウで、Google Cloud の URL(https://console.cloud.google.com/a/<your_domain.com>)を開きます。スーパー管理者以外の認証情報でサインインします。

トラブルシューティング

Error: "G Suite - This account cannot be accessed because the login credentials could not be verified."

このエラーは、公開鍵と秘密鍵が一致していない場合に表示されることがあります。証明書ファイルに正しい公開鍵が含まれていることを確認してください。

役に立ちましたか?