コンテンツにスキップ

Google Cloud

Last reviewed: 3 months ago

このガイドでは、Cloudflare Zero TrustでSAMLアプリケーションとしてGoogle Cloudを構成する方法について説明します。

前提条件

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

  1. Zero Trustに移動し、Access > Applicationsを選択します。
  2. Add an application > SaaS > Selectを選択します。
  3. Applicationとして_Google 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 Issuer、およびPublic keyをコピーします。
  8. Save configurationを選択します。
  9. アプリケーションのAccessポリシーを構成します。
  10. Doneを選択します。

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

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

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

  1. Google Admin consoleに移動し、Security > 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 Zero Trustのアプリケーション構成からのSSO endpoint。
    • Sign-out page URL: https://<team-name>.cloudflareaccess.com/cdn-cgi/access/logout、ここで<team-name>はあなたのZero Trust team nameです。
    • Verification certificate: ステップ2. Create a x.509 certificateからの.crt証明書ファイルをアップロードします。
  5. (オプション)Use a domain specific issuerをオンにします。このオプションを選択すると、GoogleはあなたのGoogle Cloudドメインに特有の発行者を送信します(google.com/a/<your_domain.com>ではなく標準のgoogle.com)。

4. 統合をテストする

シークレットブラウザウィンドウを開き、あなたの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."

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