# API経由でのユーザーアバター選択が機能しなくなりました

**URL:** https://meta.discourse.org/t/user-avatar-selection-through-api-no-longer-working/211661
**Category:** Development
**Tags:** rest-api
**Created:** [2021 年 12 月 9 日午後 8:59 UTC](https://meta.discourse.org/t/user-avatar-selection-through-api-no-longer-working/211661 "2021-12-09T20:59:16Z")
**Posts on this page:** 1
**Showing post:** 18

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [2021 年 12 月 22 日午後 2:58 UTC](https://meta.discourse.org/t/user-avatar-selection-through-api-no-longer-working/211661/18 "2021-12-22T14:58:38Z")

</div>

はい、ドキュメントに記載されるべきですね。新しいものではありませんが、他のすべてのエンドポイントとは異なります。

いくつかの情報はここで見つけることができます: [Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/discourseconnect-official-single-sign-on-for-discourse-sso/13045)

また、`discourse_api` Ruby gem が `sync_sso` エンドポイントをどのように使用しているかもわかります: [discourse\_api/lib/discourse\_api/single\_sign\_on.rb at main · discourse/discourse\_api · GitHub](https://github.com/discourse/discourse_api/blob/main/lib/discourse_api/single_sign_on.rb) および [discourse\_api/lib/discourse\_api/api/sso.rb at main · discourse/discourse\_api · GitHub](https://github.com/discourse/discourse_api/blob/main/lib/discourse_api/api/sso.rb)

SSO プロバイダーが使用しているのと同じ SSO シークレットを使用する必要があります。

---

_[View the full topic](https://meta.discourse.org/t/user-avatar-selection-through-api-no-longer-working/211661)._
