# 寻求指导：管理员和学生的双重认证设置

**URL:** https://meta.discourse.org/t/seeking-guidance-dual-authentication-setup-for-moderators-and-students/288341
**Category:** SSO
**Created:** [2023年十二月12日 06:15 UTC](https://meta.discourse.org/t/seeking-guidance-dual-authentication-setup-for-moderators-and-students/288341 "2023-12-12T06:15:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ankit\_Jha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ankit_jha/32/348308_2.png) [@Ankit\_Jha](https://meta.discourse.org/u/Ankit_Jha)
#### Post date: [2023年十二月12日 06:15 UTC](https://meta.discourse.org/t/seeking-guidance-dual-authentication-setup-for-moderators-and-students/288341/1 "2023-12-12T06:15:08Z")

</div>

您好，Discourse 支持社区：

希望您一切安好。我们目前正在完善 Discourse 上的身份验证工作流程，并希望就一个特定用例征求您的意见。

我们的目标是让版主使用传统的用户名/密码凭据登录，而学生则只能通过 [Discourse Connect](https://meta.discourse.org/t/13045?silent=true) 使用单点登录 (SSO)。我们已经成功配置了 [Discourse Connect](https://meta.discourse.org/t/13045?silent=true) 以实现 SSO，但我们正在寻求有关如何实现和管理这种双重身份验证设置的建议。

我们有一些具体问题：

1. **启用双重身份验证：**
  - 是否可以允许某些用户组（如版主）使用传统的用户名/密码登录，同时允许其他用户使用 SSO？

2. **管理版主访问权限：**
  - 我们如何创建和管理具有独立于 SSO 系统的唯一凭据的版主帐户？

3. **与用户沟通：**
  - 在向版主传达登录说明以确保顺利入职流程方面，是否有最佳实践？

我们非常感谢社区提供的任何指导、最佳实践或示例。我们重视您的专业知识，并期待您的见解。

提前感谢您的支持！

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2023年十二月12日 11:21 UTC](https://meta.discourse.org/t/seeking-guidance-dual-authentication-setup-for-moderators-and-students/288341/2 "2023-12-12T11:21:22Z")

</div>

如果您使用 [discourse connect](https://meta.discourse.org/t/13045?silent=true)，那么它将是唯一的身份验证提供程序。您需要让您的版主在学生使用的身份验证服务器上拥有帐户。管理员可以使用 `/u/admin-login`，但我认为这不适用于版主。

如果您使用 OAuth2，您可以拥有多个身份验证提供程序。

---

<div class="post-metadata">

### Author: ![Ankit\_Jha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ankit_jha/32/348308_2.png) [@Ankit\_Jha](https://meta.discourse.org/u/Ankit_Jha)
#### Post date: [2023年十二月13日 04:44 UTC](https://meta.discourse.org/t/seeking-guidance-dual-authentication-setup-for-moderators-and-students/288341/3 "2023-12-13T04:44:01Z")

</div>

他们可以使用邀请功能吗？

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2023年十二月13日 06:33 UTC](https://meta.discourse.org/t/seeking-guidance-dual-authentication-setup-for-moderators-and-students/288341/4 "2023-12-13T06:33:39Z")

</div>

不。邀请无法与 sso 一起使用

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2023年十二月13日 09:08 UTC](https://meta.discourse.org/t/seeking-guidance-dual-authentication-setup-for-moderators-and-students/288341/5 "2023-12-13T09:08:15Z")

</div>

> [@Ankit\_Jha](#):
>
> 我们的目标是让版主使用传统的用户名/密码凭据登录，而学生则应专门通过[Discourse Connect](https://meta.discourse.org/t/13045)使用单点登录（SSO）。

最简单的方法是让版主通过与学生使用的相同的SSO提供商站点登录。有什么阻止您以这种方式配置吗？我猜版主无法在SSO提供商站点上创建帐户，但也许情况并非如此。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2024年七月18日 06:19 UTC](https://meta.discourse.org/t/seeking-guidance-dual-authentication-setup-for-moderators-and-students/288341/6 "2024-07-18T06:19:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
