简体   繁体   English

使用Salesforce从SSO到Dynamics Portal

[英]SSO to Dynamics Portal with Salesforce

如何使用Salesforce凭据单点登录Dynamics 365门户?

Ok, this is how I achieved SSO to dynamics 365 using salesforce credential: 好的,这就是我如何使用Salesforce凭证实现对Dynamics 365的SSO:

First, we need to create a connected app in Salesforce. 首先,我们需要在Salesforce中创建一个关联的应用程序。 We can easily find resources online on how to create a connected app on Salesforce. 我们可以轻松地在线找到有关如何在Salesforce上创建关联应用程序的资源。 Key things to consider is that both Salesforce and Dynamics uses SAML based authentication so we need to enable SAML while creating connected app. 要考虑的关键因素是Salesforce和Dynamics都使用基于SAML的身份验证,因此我们需要在创建连接的应用程序时启用SAML。

  1. EntityId would be url of the Dynamics Portal https://yourportal.microsoftcrmportals.com EntityId将是动态门户网站的网址https://yourportal.microsoftcrmportals.com
  2. ACS URL would be https://yourportal.microsoftcrmportals.com/signin-saml2 ACS URL为https://yourportal.microsoftcrmportals.com/signin-saml2
  3. Let start URL as: https://yourportal.microsoftcrmportals.com 让URL开头为: https : //yourportal.microsoftcrmportals.com
  4. Let Subject Type as: Username 将主题类型设置为:用户名
  5. Put Name ID Format: ....emailAddress 输入名称ID格式:.... emailAddress

Leave other values as default and Save it. 将其他值保留为默认值并保存。 You might need to set up My Domain if you have not done so. 如果尚未设置“我的域”,则可能需要设置

You have to now provide permission to users to access this app through manage profile. 您现在必须向用户提供权限,以通过管理个人资料访问此应用。

Now we need to do some config setup at the Dynamics Side. 现在,我们需要在动力学方面进行一些配置设置。

Go to your Dynamics CRM backend and on the Portals >> Site Settings. 转到您的Dynamics CRM后端,然后在“门户网站>>网站设置”上。 You need to create few settings. 您需要创建一些设置。

  1. Name: Authentication/SAML2/YourAppName/AssertionConsumerServiceUrl 名称:Authentication / SAML2 / YourAppName / AssertionConsumerServiceUrl

    Website: your Dynamics Portal 网站:您的动态门户

    Value: https://yourportal.microsoftcrmportals.com/signin-saml2 值: https//yourportal.microsoftcrmportals.com/signin-saml2

YourAppName can be anything you want. YourAppName可以是您想要的任何名称。 Similary, create settings for following names: 类似地,为以下名称创建设置:

  1. Authentication/SAML2/YourAppName/AuthenticationType 认证/ SAML2 / YourAppName / AuthenticationType

    Value would be IdP-Initiated Login URL from Salesforce 值应为Salesforce的IdP发起的登录URL

  2. Authentication/SAML2/YourAppName/MetadataAddress 认证/ SAML2 / YourAppName / MetadataAddress

    Value would be Metadata Discovery Endpoint from Salesforce connected app, we created earlier 值将是我们之前创建的Salesforce连接的应用程序的Metadata Discovery Endpoint

  3. Authentication/SAML2/YourAppName/ServiceProviderRealm 认证/ SAML2 / YourAppName / ServiceProviderRealm

    Value: https://yourportal.microsoftcrmportals.com 值: https//yourportal.microsoftcrmportals.com

Thats it. 而已。 Now click on IDP Initiated login url that is provided in the Salesforce. 现在,单击Salesforce中提供的IDP启动的登录URL。 That should work. 那应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM