OAuth 2.0 委托包含在 Azure AppFabric 访问控制服务中:
但是,您如何实际设置 OAuth 2.0 身份提供者?
在管理界面中添加身份提供者并选择 WS-Federation 身份提供者时,需要提供一个 WS-Federation 元数据文档。
但是,当您阅读 OAuth 2.0 提供程序的文档(即http://msdn.microsoft.com/en-us/library/hh243647.aspx)时,没有提到元数据文档(是的,我知道 Windows Live 包括在内作为预配置的身份提供者)。这是我必须写的吗?
更新
好的,所以我发现您可以使用 API 添加其他身份提供程序,以这些 PowerShell 命令为例:
但是,当尝试添加 OAuth 提供程序时,我得到一个错误:
Add-IdentityProvider -Type "Manual" -Name "foo" -SignInAddress "http://term.ie/oauth/example/access_token.php" -Protocol OAuth -Namespace "abc" -ManagementKey "xxxxxx"
Add-IdentityProvider : An error occurred while processing this request.
At line:1 char:21
+ Add-IdentityProvider <<<< -Type "Manual" -Name "foo" -SignInAddress "http://term.ie/oauth/example/access_token.php" -Protocol OAuth -Namespace "abc" -ManagementKey "xxxxxx"
+ CategoryInfo : CloseError: (:) [Add-IdentityProvider], ServiceManagementException
+ FullyQualifiedErrorId : Microsoft.Samples.DPE.ACS.ServiceManagementTools.PowerShell.IdentityProviders.AddIdentityProviderCommand
另一个更新
ACS 管理 API 提供了一种添加新身份提供者的机制(如果您将 OpenId 设置为 WebSSOProtocolType),但是,我看不到您如何传递 OAuth 测试服务器的密钥/秘密(http://term.ie /oauth/example/)我正在使用要求。