简体   繁体   English

如何将freshdesk与auth0集成?

[英]How to integrate freshdesk with auth0?

The documentation on how to integrate auth0 with freshdesk is sparse and the ones I did find were outdated关于如何将 auth0 与 freshdesk 集成的文档很少,我找到的那些已经过时了

freshdesk support article auth0 support article freshdesk 支持文章auth0 支持文章

The following is broken down by service into steps以下按服务分解为步骤

Auth0:授权0:

  1. Assuming you have already made a new client, go to Applications / Create Application .假设您已经创建了一个新客户端,请转到Applications / Create Application
  2. Select Single Page Web App or Regular Web App .选择Single Page Web AppRegular Web App
  3. Go to Settings tab.转到Settings选项卡。
  4. Under Allowed Callback URLs insert https://[YOURDOMAIN].freshdesk.com/login/saml .Allowed Callback URLs插入https://[YOURDOMAIN].freshdesk.com/login/saml
  5. Under Allowed Web Origins be sure to put your domain.Allowed Web Origins下,确保放置您的域。
  6. Under Allowed Origins (CORS) be sure to put your domain.Allowed Origins (CORS)下,确保放置您的域。
  7. Go to Addons tab.转到Addons选项卡。
  8. Select SAML 2选择SAML 2
  9. Under Application Callback URL be sure the url is https://[YOURDOMAIN].freshdesk.com/login/saml .Application Callback URL下,确保 url 是https://[YOURDOMAIN].freshdesk.com/login/saml
  10. Under settings place the following:在设置下放置以下内容:
{
  "audience": "https://[YOURDOMAIN].freshdesk.com",
  "mappings": {
    "email": "Email",
    "name": "username",
    "given_name": "FirstName",
    "family_name": "LastName"
  },
  "nameIdentifierFormat": "urn:oasis:names:tc:SAML:2.0:nameid-format:email",
  "nameIdentifierProbes": [
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
  ],
  "signatureAlgorithm": "rsa-sha256",
  "digestAlgorithm": "sha256",
  "lifetimeInSeconds": 3600,
  "signResponse": false
}
  1. Note that the signature algorithm must be rsa-sha256 as this is what freshdesk is expecting请注意,签名算法必须是 rsa-sha256,因为这是 freshdesk 所期望的
  2. Under the Usage tab download the Auth0 certificateUsage选项卡下下载Auth0 certificate
  3. Store the Identity Provider Login URL as we will be using this on freshdesk.存储Identity Provider Login URL因为我们将在 freshdesk 上使用它。

Freshdesk:新鲜桌面:

  1. Go to Settings / General Settings / Security转到Settings / General Settings / Security
  2. Turn on Single Sign On (SSO)打开Single Sign On (SSO)
  3. Under SAML Login URL paste in the Identity Provider Login URL from auth0.SAML Login URL粘贴来自 auth0 的Identity Provider Login URL
  4. Open the Auth0 certificate and find the sha256 fingerprint and place into the Security Certificate Fingerprint field.打开Auth0 certificate并找到 sha256 指纹并将其放入Security Certificate Fingerprint字段。 Note: you may need to format your fingerprint to include : between each value.注意:您可能需要格式化指纹以在每个值之间包含:
  5. Hit save点击保存

Special Note: I did notice that agents will now have to go through auth0 in order to get to the admin dashboard.特别注意:我确实注意到代理现在必须通过 auth0 才能进入管理仪表板。 To circumvent that try logging in through this portal: https://[YOURDOMAIN].freshdesk.com/login/normal .要避免这种情况,请尝试通过此门户登录: https://[YOURDOMAIN].freshdesk.com/login/normal

I hope that these instructions help you out in your freshdesk auth0 integrations.我希望这些说明可以帮助您完成 freshdesk auth0 集成。 good luck!祝你好运!

In the last year, a few things have changed from the selected answer.在去年,选择的答案发生了一些变化。 Major differences I ran into:我遇到的主要区别:

  1. The "Application Callback URL" is the "Assertion Consume Service(ACS) URL" found in the Freshdesk SSO setup page. “应用程序回调 URL”是 Freshdesk SSO 设置页面中的“断言消费服务 (ACS) URL”。
  2. The "audience" field should be the "Service Provider(SP) Entity ID" (also found in the Freshdesk SSO setup page). “受众”字段应为“服务提供商 (SP) 实体 ID”(也可在 Freshdesk SSO 设置页面中找到)。
  3. There is no longer a "SAML Login URL".不再有“SAML 登录 URL”。 It seems to have been renamed "SAML SSO URL".它似乎已重命名为“SAML SSO URL”。 So paste the "Identity Provider Login URL" there (wouldn't it be nice if these things were called the same things on both ends?!?)所以在那里粘贴“身份提供者登录 URL”(如果这些东西在两端都被称为相同的东西,那不是很好吗?!?)
  4. Freshdesk now wants the complete certificate, not the fingerprint. Freshdesk 现在想要完整的证书,而不是指纹。 So you'll need to copy the whole contents of the .pem file that you can download from Auth0 into the text field for "Security Certificate".因此,您需要将可以从 Auth0 下载的 .pem 文件的全部内容复制到“安全证书”的文本字段中。
  5. Freshdesk requires an "Entity Id provided by the IdP". Freshdesk 需要“IdP 提供的实体 ID”。 This one took some work to figure out.这个需要一些工作才能弄清楚。 It turns out it is called "Issuer" under the "SAML Protocol Configuration Parameters" on Auth0.事实证明,它在 Auth0 上的“SAML 协议配置参数”下被称为“发行者”。 Look in the "Usage" tab (same place you can get the certificate and the "Identity Provider Login URL".查看“使用”选项卡(您可以在同一位置获取证书和“身份提供程序登录 URL”。

I hope that helps somebody else.我希望能帮助别人。 With those tweaks, everything seems to be working well for me.通过这些调整,一切似乎对我来说都运行良好。

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

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