Skip to content

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

Slack

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

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

前提条件

  • Cloudflare One に設定済みの ID プロバイダー
  • Slack の Business+ または Enterprise Grid プランの管理者権限

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

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

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

  1. テキストエディターに Public key を貼り付けます。
  2. 証明書を -----BEGIN CERTIFICATE----------END CERTIFICATE----- で囲みます。

3. Slack に SAML SSO プロバイダーを追加する

  1. Slack で Settings & administrations > Workspace settings > Authentication を開きます。
  2. Configure を選びます。
  3. Test をオンにします。設定の変更は、Configure をオンにするまで適用されません。
  4. 次の項目を入力します。
    • Service Provider Issuer URL: https://slack.com になっていることを確認します。
    • SAML SSO URL: Cloudflare One のアプリケーション設定にある SSO endpoint。
    • Identity Provider Issuer: Cloudflare One のアプリケーション設定にある Access Entity ID or Issuer。
    • Public Certificate: 2. x.509 証明書を作成する の x.509 証明書全体を貼り付けます。
  5. Advanced OptionsExpand を選びます。
  6. AuthnContextClassRefurn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport が選ばれていることを確認します。
  7. Sign the AuthnRequest がオフであることを確認します。
  8. SAML Response SigningSign the ResponseSign the Assertion をオンにします。
  9. メインの設定ページの Settings で、ワークスペースメンバーに対して SSO を requiredpartially requiredoptional のどれにするかを選びます。
  10. (任意)CustomizeSign in Button Label を入力します。
  11. 設定をテストします。問題なければ、TestConfigure に切り替えます。
  1. Slack で Settings & administration > Organization settings > Security > SSO Settings を開きます。
  2. SSO name に任意の名前を入力します。
  3. 次の項目を入力します。
    • SAML 2.0 Endpoint URL: Cloudflare One のアプリケーション設定にある SSO endpoint。
    • Identity Provider Issuer URL: Cloudflare One のアプリケーション設定にある Access Entity ID or Issuer。
    • Service Provider Issuer URL: https://slack.com になっていることを確認します。
    • x.509 Certificate: 2. x.509 証明書を作成する の x.509 証明書全体を貼り付けます。
  4. AuthnContextClassRefurn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport が選ばれていることを確認します。
  5. Sign the AuthnRequest がオフであることを確認します。
  6. SAML Response SigningSign the ResponseSign the Assertion をオンにします。
  7. Test Configuration を選びます。
  8. 問題なければ、Turn on SSO または Add SSO を選びます。

役に立ちましたか?