我使用的是天蓝色访问控制服务(ACS)。我正在尝试获取我为我的应用程序选择的身份提供者列表。为此,我使用以下代码From Here:
public ActionResult IdentityProviders(string serviceNamespace, string appId)
{
string idpsJsonEndpoint = string.Format(IdentityProviderJsonEndpoint, serviceNamespace, appId);
var client = new WebClient();
var data = client.DownloadData(idpsJsonEndpoint);
return Content(Encoding.UTF8.GetString(data), "application/json");
}
任何人都可以告诉我什么是appId以及我从哪里获得它?
答案 0 :(得分:1)
根据您提供的链接,您需要从此处获取。
https://portal.appfabriclabs.com
同时检查链接中的以下行
{ serviceNamespace = "YourServiceNamespace", appId = "https://localhost/<YourWebApp>/" }))',
appId
将是您在注册后获得的