身份验证后导航到Dynamic CRM主页

时间:2013-04-11 03:24:56

标签: azure dynamics-crm-2011 dynamics-crm dynamics-crm-online

我需要在外部登录身份验证后导航到动态CRM主页面。

http://msdn.microsoft.com/en-us/library/hh675404.aspx

我已经成功检索到了loged用户的详细信息,但我不知道如何从我的外部页面重定向到主页面。下面是我的代码的一部分。

 // This statement is required to enable early-bound type support.
                organizationProxy.EnableProxyTypes();

                // Now make an SDK call with the organization service proxy.
                // Display information about the logged on user.
                Guid userid = ((WhoAmIResponse)organizationProxy.Execute(
                    new WhoAmIRequest())).UserId;
                SystemUser systemUser = organizationProxy.Retrieve("systemuser", userid,
                    new ColumnSet(new string[] { "firstname", "lastname" })).ToEntity<SystemUser>();
                Response.Write("Logged on user is {0} {1}."+
                    systemUser.FirstName+" "+ systemUser.LastName);
                Response.Redirect("https://redrocksoftware.crm5.dynamics.com/default.aspx");

Response.Redirect导航回登录页面。

1 个答案:

答案 0 :(得分:0)

你问的是奇怪的。您提到的文章描述了从客户端软件检索对CRM Web服务的访问。但浏览器身份验证绝对不同。如果要在浏览器中进行身份验证,则应在登录窗口中输入凭据 您可以找到一些有用的信息here

相关问题