Windows Server 2012 上的 powershell 命令 Add-ADFSClient 的等效项是什么?

What is the equivalent to the powershell command Add-ADFSClient on Windows Server 2012?

正在尝试了解 SSO。

我们在 Windows Server 2012 上安装了 ADFS,然后我创建了一个 SSO 示例项目的 Azure Active Directory 版本,如下所示: https://github.com/Azure-Samples/active-directory-dotnet-native-client

效果很好。

然后尝试将其移植到我们的 Windows Server 2012 ADFS 我遵循了本教程:

http://www.cloudidentity.com/blog/2013/10/25/securing-a-web-api-with-adfs-on-ws2012-r2-got-even-easier/

这在某一时刻对 运行 说以下 powershell 命令将 WPF windows 客户端添加到 ADFS:

Add-ADFSClient -Name “MyClient” -ClientId “E1CF1107-FF90-4228-93BF-26052DD2C714” -RedirectUri “http://anarbitraryreturnuri/”

但本教程适用于 Windows Server 2012 R2 我们 运行 普通 Windows Server 2012 版本和此添加-缺少 ADFSClient powershell 命令。

如何在 Windows Server 2012 上向 ADFS 添加一个 Windows 客户端?

谢谢!

您使用的示例和命令 运行 是 OAuth,2012 年不支持 OAuth,因此缺少 PowerShell 命令。

2012 R2仅支持OAuth授权码授权。

2016 (TP3) 拥有完整的 OpenID Connect / OAuth 堆栈。