---
title: OpenID Connectプロバイダーを接続する
description: Keycloak、Microsoft Entra ID、Auth0、Ping Identity、またはほかのOpenID Connectプロバイダーを接続し、groupsクレームを設定し、グループをPynのロールにマッピングします。
sidebar:
  order: 2
area: integrations
feature: sso
appPath: /settings/integrations/available
lastVerified: 2026-11-09
version: "2026-11-09"
audience: admin
related:
  - integrations/sso
  - integrations/sso/connect-okta
  - settings/users
intercom:
  - id: "16838066"
    title: Enabling Single Sign On (Pyn 2)
    url: https://intercom.help/pyn/en/articles/16838066-enabling-single-sign-on-pyn-2
    note: replaces
translation:
  source: integrations/sso/connect-an-oidc-provider.mdx
  sourceSha: 6c4fc9c14619f4daa3b2e06d83cb418cd8d3b119
---

あなたのIDプロバイダーはOpenID Connectに対応していて、そのプロバイダーで従業員をPynにサインインさせ、ロールも決めさせたい、という状況です。Single Sign-On連携はプロバイダー、そのissuer、認可コードフローのクライアントを受け取り、プロバイダーのOpenID設定を確認して、必要なリダイレクトURIとサインインリンクを表示します。

## 始める前に

- あなたがPynの管理者またはオーナーで、ワークスペースでSingle Sign-On連携が有効であること。
- プロバイダーで機密クライアントを作成できる人がいること（「The client needs the standard authorization code flow and a client secret.」）。Pynは`openid`、`profile`、`email`のスコープを要求します。ロールのマッピングにはIDトークンに`groups`クレームが必要で（Entraは`roles`を発行します）、そのクレームを取得するためのスコープがあれば**Additional Scopes**に入れます。
- issuer、クライアントID、クライアントシークレットがあること。Keycloakでは**Keycloak Server URL**と**Realm**が必要で、Pynはそれらからissuerを組み立てます。

![Connect single sign-on: choose the Provider, then enter the issuer, client ID, client secret and groups claim.](https://support.pyn.ai/media/integrations/sso/integrations-sso-connect.png)

## 手順

1. Pynで左のナビゲーションの**Settings**を開き、**Integrations**の下の**Available**を開きます。

2. **Single Sign-On**のタイルを選びます。**Connect single sign-on**ダイアログが開きます。

3. **Provider**を**Keycloak**、**Okta**、**Microsoft Entra ID**、**Auth0**、**Ping Identity**から選びます。それ以外のプロバイダーでは**Single Sign-On**を選びます。

4. Keycloakでは**Keycloak Server URL**と**Realm**を、それ以外では**Issuer URL**を入力します。

5. **Client ID**と**Client Secret**を入力します。プロバイダーが`groups`以外の名前を使うなら**Groups Claim**を、`openid profile email`以外のスコープが必要なら**Additional Scopes**を設定します。

6. ダイアログに「Add this as a valid redirect URI on the client in your provider, then come back and connect.」という説明付きで表示された**Redirect URI**をコピーします。

7. **Connect**を選びます。ダイアログには「Checking those details with your provider...」と表示され、続いて「Single sign-on is configured. Use the sign-in link on the integration to let your people sign in with it.」という通知が出ます。

8. パネルの**Group mappings**で、**Owner groups**、**Admin groups**、**Power user groups**、**User groups**にカンマ区切りのグループ名を、オーナーから順に入力します。

> **Caution:** グループのマッピングを1つでも設定すると、プロバイダーがサインインのたびにロールを決め、どのグループにも一致しない人はUserになります。オーナーを最初にマッピングしてください。

## 確認できること

タイルは**Installed**で**Active**を表示し、パネルには**Redirect URI**と**Sign-in link**が表示されます。**Sign-in link**の説明は「Share this with your people to sign in through your provider. Opening it signs you in.」です。ダイアログが接続を拒否した場合は、表示された理由を確認します。「That address answered, but not with an OpenID configuration.」は、issuerがプロバイダーの設定が公開されているベースURLではないことを意味します。「Could not reach that issuer.」はインターネットから到達できないことを、「The issuer needs to be a full URL, starting with https://.」は形式の問題を意味します。「An unexpected error occurred. Please check the details and try again. If the error persists, contact support.」はリクエストが届かなかったことを意味するので、もう一度試します。メニュー（**...**）の**Reconnect**でダイアログを再び開き、どの項目でも変更できます。

## 関連ページ

- [シングルサインオン](https://support.pyn.ai/ja/integrations/sso/)：ロールのマッピングと従業員に見えるものについてです。
- [Oktaを接続する](https://support.pyn.ai/ja/integrations/sso/connect-okta/)：Okta専用の連携についてです。
- [ユーザー](https://support.pyn.ai/ja/settings/users/)：グループ一覧が参照するロールについてです。
