> ## Documentation Index
> Fetch the complete documentation index at: https://translations.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ユーザープロフィールの構造に影響する Yahoo API の変更について説明します。

# Yahoo API の変更

Yahoo は、アプリケーションが [Social Directory API](https://developer.yahoo.com/oauth/social-directory-eol/) からユーザープロフィールを取得するために使用していた API を、Yahoo の `/userinfo` エンドポイントに変更しました。この変更により、Auth0 における Yahoo ユーザーのユーザープロフィールの構造も変わります。

以前の Auth0 では、Yahoo が返すすべてのプロファイルデータを読み込み、さらに Yahoo のプロファイルからマッピングした以下の追加フィールドを加えていました。

Yahoo は、[Yahoo のドキュメント](https://developer.yahoo.com/oauth/social-directory-eol/) に記載されている `url`、`profileUrl`、`isConnected`、およびその他のフィールド (「List Of Attributes Deprecated in Social Directory Profile Api」を参照) を返さなくなりました。これらのフィールドも、今後はプロファイルに含まれません。

Yahoo の `/userinfo` エンドポイントは、[Yahoo Application](https://developer.yahoo.com/apps/) の定義で設定した API 権限に応じて、異なるフィールドを返します。Yahoo では、**Profile (Social Directory)** 権限セクションで、次の 4 つの権限のいずれかを付与できます。

* Read Public Basic
* Read Public Extended
* Read Write Public
* Read Write Public and Private

<div id="actions">
  ## Actions
</div>

<Tooltip tip="Auth0 Dashboard: サービスを設定するための Auth0 のメイン製品です。" cta="用語集を見る" href="/ja/docs/glossary?term=Auth0+Dashboard">Auth0 Dashboard</Tooltip> で Yahoo 接続を設定する際は、Yahoo の設定で付与した権限に対応する属性を選択します。Yahoo で指定した内容と一致しない属性を選択すると、ログイントランザクションは失敗します。

Auth0 の接続設定で権限を何も選択しない場合、Auth0 はデフォルトで `openid` スコープを要求します。これにより、Yahoo アプリケーションで指定した API 権限に対応するプロファイルフィールドが返されます。たとえば、Yahoo アプリケーションが **Read Public Extended** 権限で設定されている場合、Yahoo は次のフィールドを返します。

* `sub, name`
* `given_name`
* `family_name`
* `family_name`
* `locale`
* `email`
* `email_verified`
* `birthdate`
* `profile_images`
* `picture`
* `preferred_username`
* `phone_number`
* `nickname`

Yahoo 接続を使用してユーザーを認証し、基本情報を取得している場合、アプリケーションは変更しなくても引き続き動作します。

アプリケーションが現在は利用できなくなったユーザープロフィール内のフィールドにアクセスしている場合は、Auth0 Dashboard で正しい **Connection Attribute** を有効にし、適切なフィールド名を使用するようにアプリケーションコードを調整する必要があります。
