Dynamics crm 使用内部IFD和MFA时的CRM连接字符串
最近已将连接到Dynamics CRM的应用程序转换为使用新的CRM工具连接方法。它使用了连接到CRM的旧方法,我需要更新连接方法以支持现代CRM Online 这部分没问题Dynamics crm 使用内部IFD和MFA时的CRM连接字符串,dynamics-crm,microsoft-dynamics,adfs,multi-factor-authentication,Dynamics Crm,Microsoft Dynamics,Adfs,Multi Factor Authentication,最近已将连接到Dynamics CRM的应用程序转换为使用新的CRM工具连接方法。它使用了连接到CRM的旧方法,我需要更新连接方法以支持现代CRM Online 这部分没问题 IOrganizationService _crmService; string connectionString = "....my crm connection string...."; CrmServiceClient service = new CrmServiceClient(connectionString);
IOrganizationService _crmService;
string connectionString = "....my crm connection string....";
CrmServiceClient service = new CrmServiceClient(connectionString);
_crmService = (IOrganizationService)service.OrganizationWebProxyClient != null ? (IOrganizationService)service.OrganizationWebProxyClient : (IOrganizationService)service.OrganizationServiceProxy;
这一切都有效,可以连接到IFD内部部署和CRM Online
IFD正在使用以下格式的字符串连接:
AuthType=IFD;Url=https://crmorg.crmprovider.com/CRMORG;Username=myuser@domain.com;Password=MyPass;Domain=NETBIOSDOMAIN;
AuthType=OAuth;Url=https://yourcrm.crm.dynamics.com;AppId=APPID;RedirectUri=http://localhost;
通过在Azure中注册应用程序并以以下格式配置连接字符串,它还可以通过CRM Online支持MFA:
AuthType=IFD;Url=https://crmorg.crmprovider.com/CRMORG;Username=myuser@domain.com;Password=MyPass;Domain=NETBIOSDOMAIN;
AuthType=OAuth;Url=https://yourcrm.crm.dynamics.com;AppId=APPID;RedirectUri=http://localhost;
我一直关注的是使用内部部署Microsoft MFA的IFD(内部部署)部署中字符串的格式
当我在Azure AD中使用OAuth方法时,应用程序会弹出一个Microsoft登录助手,处理用户/通行证和双因素请求
如何使用Microsoft最新的ADFS和MFA组件构建CRM连接字符串,以便对内部部署的CRM365部署执行相同的操作?我知道本地安装会像Microsoft登录助手一样挑战您的用户/通行证(通过ADFS),但如果不使用CRM Online,我如何调用这种连接方法?没有人对此有任何想法?我在几个论坛上问过,什么也没问。。我可以;你不是地球上唯一一个尝试连接到在线MFA实现的人吗?