このガイドでは、Cloudflare One で Slack ↗ を SAML アプリケーションとして設定する方法を説明します。
- Cloudflare One に設定済みの ID プロバイダー
- Slack の Business+ または Enterprise Grid プランの管理者権限
- Cloudflare ダッシュボード ↗ で Zero Trust > Access controls > Applications を開きます。
- Create new application > SaaS application を選びます。
- Application で Slack を選びます。
- 認証プロトコルで SAML を選びます。
- Add application を選びます。
- 次の項目を入力します。
- Entity ID:
https://slack.com - Assertion Consumer Service URL:
https://<YOUR_DOMAIN>.slack.com/sso/saml - Name ID format: Slack が想定する形式。通常は Email
- Entity ID:
- SSO endpoint、Access Entity ID or Issuer、Public key をコピーします。
- アプリケーションの Access ポリシー を設定します。
- アプリケーションを保存します。
- テキストエディターに Public key を貼り付けます。
- 証明書を
-----BEGIN CERTIFICATE-----と-----END CERTIFICATE-----で囲みます。
- Slack で Settings & administrations > Workspace settings > Authentication を開きます。
- Configure を選びます。
- Test をオンにします。設定の変更は、Configure をオンにするまで適用されません。
- 次の項目を入力します。
- 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 証明書全体を貼り付けます。
- Service Provider Issuer URL:
- Advanced Options で Expand を選びます。
- AuthnContextClassRef で urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport が選ばれていることを確認します。
- Sign the AuthnRequest がオフであることを確認します。
- SAML Response Signing で Sign the Response と Sign the Assertion をオンにします。
- メインの設定ページの Settings で、ワークスペースメンバーに対して SSO を required、partially required、optional のどれにするかを選びます。
- (任意)Customize で Sign in Button Label を入力します。
- 設定をテストします。問題なければ、Test を Configure に切り替えます。
- Slack で Settings & administration > Organization settings > Security > SSO Settings を開きます。
- SSO name に任意の名前を入力します。
- 次の項目を入力します。
- 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 証明書全体を貼り付けます。
- AuthnContextClassRef で urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport が選ばれていることを確認します。
- Sign the AuthnRequest がオフであることを確認します。
- SAML Response Signing で Sign the Response と Sign the Assertion をオンにします。
- Test Configuration を選びます。
- 問題なければ、Turn on SSO または Add SSO を選びます。