# Azure AD 身份验证和用户帐户创建

**URL:** <https://meta.discourse.org/t/azure-ad-authentication-and-creation-of-user-account/199267>\
**Category:** Support\
**Created:** [2021年八月5日 13:21 UTC](https://meta.discourse.org/t/azure-ad-authentication-and-creation-of-user-account/199267 "2021-08-05T13:21:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2021年八月9日 09:25 UTC](https://meta.discourse.org/t/azure-ad-authentication-and-creation-of-user-account/199267/3 "2021-08-09T09:25:00Z")

</div>

> [@Sundaram\_Das](#):
>
> 是否有指南说明如何通过 Azure AD 启用单点登录？

许多人通过使用 OpenID Connect 插件取得了成功。在此链接的第一篇帖子的底部，有一个关于 Azure AD 的简短章节：

> [@Discourse OpenID Connect (OIDC)](https://meta.discourse.org/t/openid-connect-authentication-plugin/103632?u=david):
>
> discourse2Summary Discourse OpenID Connect allows an OpenID Connect provider to be used as an authentication provider for Discourse.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Features The plugin aims to provide a minimal implementation of [the specification](https://openid.net/specs/openid-connect-basic-1_0.html). Specifically, it supports the “Authorization Code Flow”. To get started, follow [the plugin installation instructions](https://meta.discourse.org/t/install-plugins-in-discourse/19157), or contact your hosti…

> [@Sundaram\_Das](#):
>
> 如果我使用基于用户名和密码的认证，用户可以在论坛上注册并创建账户；但在 Azure AD SSO 的情况下，登录时个人资料将如何自动创建？

默认情况下，用户会在 Discourse 中点击“登录”，然后被重定向到 Azure。当他们返回 Discourse 时，会看到注册表单（与常规注册表单相同，只是没有密码字段）。您可以使用各种站点设置来控制注册行为。

> [@Sundaram\_Das](#):
>
> 将根据某些 Azure AD 组映射到特定组

目前尚不支持组同步。您可能可以通过构建与 Discourse API 的集成来实现某些功能。

---

_[View the full topic](https://meta.discourse.org/t/azure-ad-authentication-and-creation-of-user-account/199267)._
