如果还有其他感兴趣的各方:我最终在我的应用程序中使用了 sync_sso API 来创建/更新 Discourse 中的用户,并检索其用户名,以便在后续调用 Discourse API 时使用(使用实例的 master api_key)。鉴于 https://meta.discourse.org/t/sync-sso-user-data-with-the-sync-sso-route/84398,这是一个相当直接的方法。
maggiomj
(Matt Maggiore)
5
相关话题
| 话题 | 回复 | 浏览量 | 活动 | |
|---|---|---|---|---|
| How to use the third-party API interface to log in to Discourse? | 2 | 309 | 2024 年4 月 16 日 | |
| Can I use the Discourse API to authenticate users in another app? | 17 | 2830 | 2023 年7 月 1 日 | |
| Discourse SSO synced login with API | 0 | 1339 | 2020 年9 月 21 日 | |
| Discourse Login & Registeration | 4 | 3569 | 2016 年9 月 28 日 | |
| Discourse login from external site | 0 | 977 | 2023 年1 月 10 日 |