AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 05.04.2014, 02:19   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
CRMScape: MS CRM 2013 Online upgrade to Office 365 authentication
Источник: http://crmscape.blogspot.com/2014/04...to-office.html
==============

Recently many CRM Online customers were transitioned from Live ID to Office 365 authentication.

The result is that the earlier Live ID users accounts no longer exist and any software still using Live ID authentication stopped working.

This requires updating how any portal code authenticates and using a new Office 365 user account to authenticate with.

In addition the CRM 2013 Email Router needs to be reconfigured and updated to the Rollup 2 version ( at this moment in time ).

O365 Authentication

If you start with the latest CRM 2013 SDK  example AuthenticateWithNoHelp solution, you can add the code snippet below to the file  AuthenticateWithNoHelp.cs to get O365 authentication to work.



First open and compile this solution. Than add the code snippet below to the AuthenticationWithNoHelp class.

The following gives you an IOrganizationService and an IOrganizationServiceContext

If you are incorporating this into an existing CRM 2011 solution, you will need to update your Microsoft.Xrm.Client and Microsoft.Xrm.Sdk references.

The global variables beginning with underscores are used internally in the AuthenticationWithNoHelp class. Substitute your organization name for {orgname}.

public IOrganizationService OrgService { get; set; }
public OrganizationServiceContext OrgContext { get; set; }

private String _discoveryServiceAddress = "https://dev.crm.dynamics.com/XRMServices/2011/Discovery.svc";
private String _userName = "newusername@{orgname}.onmicrosoft.com";
private String _password = "password";
private String _domain = "";



public Authenticate()
{
IServiceManagement serviceManagement = ServiceConfigurationFactory.CreateManagement(new Uri(_discoveryServiceAddress));
AuthenticationProviderType endpointType = serviceManagement.AuthenticationType;

IServiceManagement orgServiceManagement = ServiceConfigurationFactory.
CreateManagement( new Uri("https://{orgname}.api.crm.dynamics.com/XrmServices/2011/Organization.svc "));

AuthenticationCredentials credentials = GetCredentials(orgServiceManagement, endpointType);

using (OrganizationServiceProxy organizationProxy =
GetProxy(orgServiceManagement, credentials))
{
OrgService = organizationProxy;

organizationProxy.EnableProxyTypes();

OrgContext = new OrganizationServiceContext(organizationProxy);
}
}



Email Router
If you are running an older version of the email router update to the appropriate 32 or 64 bit version found here.
http://www.microsoft.com/en-us/downl....aspx?id=42272
Install and reboot.
 
To reconfigure your Email Router:
1. Change the Server URL  from dev.crm.dynamics.com to disco.crm.dynamics.com
2. Change the User Name and Password to new a new Office 365 account

Then under Configuration Profiles Set the Outgoing Access Credentials to match the Office 365 Credentials used above.



Now
  1. Publish your changes
  2. Load Data
  3. Test Access
That may not cover every Email Router configuration change, but it should cover most of them.



Источник: http://crmscape.blogspot.com/2014/04...to-office.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crminthefield: CRM 2013 Form Upgrade experience Blog bot Dynamics CRM: Blogs 0 10.03.2014 22:11
a33ik: MS CRM 2013: Issues uploading report to CRM Online Blog bot Dynamics CRM: Blogs 0 20.01.2014 01:18
Все о Microsoft Dynamics CRM: Построение бизнес-процесса автоматизации ведения Возможной сделки (часть 2) Blog bot Dynamics CRM: Blogs 0 19.04.2012 07:14
ukcrm: Provisioning CRM Online Via The Office 365 Microsoft Online Portal Blog bot Dynamics CRM: Blogs 0 09.01.2012 20:12
crminthefield: CRM Online Document Management with SharePoint Online (Office 365) Blog bot Dynamics CRM: Blogs 0 08.12.2011 03:13

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 06:15.