# 第三方登录-无需管理员访问权限

**URL:** https://meta.discourse.org/t/3rd-party-login-without-admin-access/233759
**Category:** SSO
**Created:** [2022年七月23日 18:40 UTC](https://meta.discourse.org/t/3rd-party-login-without-admin-access/233759 "2022-07-23T18:40:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![aidanohart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aidanohart/32/268097_2.png) [@aidanohart](https://meta.discourse.org/u/aidanohart)
#### Post date: [2022年七月23日 18:40 UTC](https://meta.discourse.org/t/3rd-party-login-without-admin-access/233759/1 "2022-07-23T18:40:54Z")

</div>

您好，

我想创建一个网站，用户可以通过该网站登录特定的 Discourse 站点，并返回我的网站，同时提供一些基本信息，例如用户名、头像、电子邮件和用户 ID。但是，主要问题是我没有该 Discourse 论坛的任何管理访问权限，我想知道是否有可行的方案？

我看到过许多关于 SSO 和/或用户 API 密钥的不同帖子。

我看到可以使用 URL/session/current.json 读取我的会话变量，但我不认为这是最理想的方法。如果您有任何关于如何处理此问题的建议，或有任何可以参考的帖子，我将非常感谢您的时间！

非常感谢，  
Aidan！

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2022年七月23日 20:02 UTC](https://meta.discourse.org/t/3rd-party-login-without-admin-access/233759/2 "2022-07-23T20:02:16Z")

</div>

这将允许任何人从论坛中提取用户的电子邮件地址，所以这是不允许的。

---

<div class="post-metadata">

### Author: ![aidanohart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aidanohart/32/268097_2.png) [@aidanohart](https://meta.discourse.org/u/aidanohart)
#### Post date: [2022年七月23日 20:10 UTC](https://meta.discourse.org/t/3rd-party-login-without-admin-access/233759/3 "2022-07-23T20:10:25Z")

</div>

但是用户必须授权该尝试，对吗？  
基本上就像 OAuth 一样

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2022年七月23日 20:14 UTC](https://meta.discourse.org/t/3rd-party-login-without-admin-access/233759/4 "2022-07-23T20:14:35Z")

</div>

网站所有者在法律上有责任保守该数据机密。
