首页 > 解决方案 > Azure AD 集成到 IdentityServer4 详细教程

问题描述

我有自己的 IdentityServer4 来管理对我的平台的授权。现在,我想添加对基于 Azure AD 的 SSO 作为外部提供商的支持。我从这些文档开始:

https://identityserver4.readthedocs.io/en/latest/topics/signin_external_providers.html

https://docs.identityserver.io/en/release/quickstarts/4_external_authentication.html#adding-support-for-external-authentication

基本上,我很想在上面的链接中提供有关 Google 集成的详细信息(包括在哪里找到租户 ID 以及如何创建 ClientId - 看起来我需要这些)。

我的第一个里程碑是实现与demo.identityserver.io中相同的“使用 Azure AD 登录”按钮。该演示服务器的完整代码在某处可用吗?

此外,是否可以提供有关所涉及的各种协议的一些信息。例如,我的客户告诉我他们有一个暴露 SAML2 的 Azure AD(如果有意义的话)。它对我的实施有影响吗?

FWIW,我找到了很多关于这个主题的信息,包括下面的链接,但在每种情况下,我都会错过一些文章,而且每个人似乎都有自己对这个主题的变化。

https://deblokt.com/2019/09/30/06-identityserver4-external-providers/

https://identityserver4.readthedocs.io/en/latest/topics/signin_external_providers.html?highlight=azure#state-url-length-and-isecuredataformat

https://github.com/mclark1129/IdentityServer4.Samples

https://www.c-sharpcorner.com/article/setup-asp-net-core-web-apis-to-use-azure-ad-authentication/

如何在 IdentityServer4 for Core 2.0 中启用 Azure 集成?

标签: asp.net-coreazure-active-directoryidentityserver4

解决方案


推荐阅读