【发布时间】:2013-08-30 19:09:26
【问题描述】:
我下载了这个项目的源代码http://code.msdn.microsoft.com/windowsazure/MVC4-Web-API-With-SWT-232d69da#content,因为我试图了解 ACS 身份验证以及如何在我的 MVC Web API 中应用它。
代码有这样的:
// USE CONFIGURATION FILE, WEB.CONFIG, TO MANAGE THIS DATA
static string serviceNamespace = "<YOUR SERVICE NAMESPACE>";
static string acsHostUrl = "accesscontrol.windows.net";
static string realm = "<REALM>";
static string uid = "USERNAME";
static string pwd = "PASSWORD";
static string serviceUrl = "http://localhost:51388/api";
static string serviceAction = @"/values";
它要求我使用什么用户名和密码?是否要我创建“服务标识”并使用“密码”选项?
【问题讨论】:
标签: c# asp.net-mvc-4 azure acs