# Discourse ID 的工作原理

**URL:** https://meta.discourse.org/t/how-discourse-id-works/379565
**Category:** Site Management
**Tags:** discourse-id
**Created:** [2025年八月28日 15:59 UTC](https://meta.discourse.org/t/how-discourse-id-works/379565 "2025-08-28T15:59:23Z")
**Posts on this page:** 1
**Showing post:** 26

<div class="post-metadata">

### Author: ![ecki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ecki/32/264025_2.png) [@ecki](https://meta.discourse.org/u/ecki)
#### Post date: [2025年十一月12日 19:17 UTC](https://meta.discourse.org/t/how-discourse-id-works/379565/26 "2025-11-12T19:17:29Z")

</div>

同意，但只是提示一下，它使用了 Omniauth 的 OAuth2 流程，并且有自己的注册机制来在此处获取客户端密钥 [discourse/app/services/discourse\_id/register.rb at 62942ee5851b55aa1c0a56dbd3f43af1330ea451 · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/62942ee5851b55aa1c0a56dbd3f43af1330ea451/app/services/discourse_id/register.rb#L19)

不过，不完全确定 omniauth 是使用 OIDC 还是令牌自省端点来获取实际的用户属性。

---

_[View the full topic](https://meta.discourse.org/t/how-discourse-id-works/379565)._
