1

我正在使用 azure 访问控制服务 (ACS)。我正在尝试获取为我的应用程序选择的身份提供者列表。为此,我从这里使用以下代码:

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 以及我在哪里得到它?

4

1 回答 1

1

根据您提供的链接,您需要从此处获取。

https://portal.appfabriclabs.com

还要检查链接中的以下行

{ serviceNamespace = "YourServiceNamespace", appId = "https://localhost/<YourWebApp>/" }))',

appId是您注册后将获得的

在此处输入图像描述

于 2013-01-28T06:48:34.350 回答