我正在开发一个Dynamic CRM自定义在线身份验证登录 . 我现在能够检索已记录的用户信息,我想将记录的用户重定向到CRM页面 . 以下就是我所拥有的 .
// 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."+
systemUser.FirstName+" "+ systemUser.LastName);
成功检索记录的用户信息 . 如何重定向到CRM主页?
1 回答
你有没有尝试过这样的事情:
编辑:检查Microsoft的这个选项,以做我认为你想要的:
Single Sign-on from a Custom Web Page
Implement Single Sign-on from an ASPX Webpage or IFRAME
Authenticate Users with Microsoft Dynamics CRM Web Services