asp.net-core - Azure AD 集成到 IdentityServer4 详细教程
问题描述
我有自己的 IdentityServer4 来管理对我的平台的授权。现在,我想添加对基于 Azure AD 的 SSO 作为外部提供商的支持。我从这些文档开始:
https://identityserver4.readthedocs.io/en/latest/topics/signin_external_providers.html
基本上,我很想在上面的链接中提供有关 Google 集成的详细信息(包括在哪里找到租户 ID 以及如何创建 ClientId - 看起来我需要这些)。
我的第一个里程碑是实现与demo.identityserver.io中相同的“使用 Azure AD 登录”按钮。该演示服务器的完整代码在某处可用吗?
此外,是否可以提供有关所涉及的各种协议的一些信息。例如,我的客户告诉我他们有一个暴露 SAML2 的 Azure AD(如果有意义的话)。它对我的实施有影响吗?
FWIW,我找到了很多关于这个主题的信息,包括下面的链接,但在每种情况下,我都会错过一些文章,而且每个人似乎都有自己对这个主题的变化。
https://deblokt.com/2019/09/30/06-identityserver4-external-providers/
https://github.com/mclark1129/IdentityServer4.Samples
https://www.c-sharpcorner.com/article/setup-asp-net-core-web-apis-to-use-azure-ad-authentication/
解决方案
推荐阅读
- javascript - 完整日历将事件显示为点
- javascript - Coldfusion 仅在内容存在时显示
- angular - 带有对远程后端的 API 调用的离子 http 可观察工作流
- eigen - 使用 Eigen 库以梯形形式放置矩阵
- xamarin - SSL 客户端证书握手使用 Square.SocketRocket.WebSocket for Xamarin iOS
- node.js - Node.js 中的 Https 请求
- java - Java Netty 保持与客户端的开放连接
- java - ibmcloud 运行状况检查从未通过
- javascript - 切换无状态反应组件数组的可见性
- tensorflow - 使用嵌入层序列化 keras 模型