与 Okta 集成
在开始整合过程之前,您必须已经申请并核准了 Onshape Enterprise 帐户或试用版,并且拥有 Onshape Enterprise 域名。
Enterprise 域名的一个例子可能是:MyCompanyName.onshape.com。
请注意,您一次只能使用一个 SSO 提供程序。
This configuration process might fail without parameter values customized for your organization. Use your custom SSO identity provider (for example: Okta, PingOne, or ClassLink) dashboard to add Onshape as an application and record the values that are specific for your organization. You need those values for the following procedure.
Onshape 签署所有发出的 SAML 认证申请。您无需上传任何证书(例如,SAML 签名证书),ADFS 集成除外,因为 ADFS 会验证传入的 SAML 请求。请注意,Microsoft 还建议从最新版本的 ADFS 迁移到微软 Entra ID。有关更多信息,请参阅 ADFS 概述。
将 Onshape 添加到您的 Okta 单点登录帐户
要为贵公司启用单点登录,您必须先将 Onshape 添加到您的 Okta 帐户中:
- 登录到您的 Okta 帐户。
- 单击菜单功能区中的应用程序。
- 单击添加应用程序按钮。
- 在搜索输入框中键入“Onshape”。
- 当 Onshape 出现时,单击添加按钮。
- 出现“添加 Onshape”页面。
- 为您的企业输入域名前缀。(例如,上面提到的 URL 中的 MyCompanyName。)
- 单击下一步。
此时,您可以将 Onshape 分配给您帐户中的用户。在将 Onshape 分配给人员页面上,按照常规步骤将更多用户添加到 Onshape 应用程序。
下载单点登录文件
将用户添加到 Okta 帐户中的 Onshape 应用程序后,请下载身份提供程序元数据文件(在 Onshape 中称为配置文件):
- 从 Okta 帐户中的 Onshape 应用程序页面中,单击菜单功能区中的登录。
- 在“SAML 签名证书”部分,单击有效 SHA-2 证书右侧的操作按钮。然后单击查看 IdP 元数据。当页面打开时,右击并将此信息另存为 .xml 文件。
Configure the SSO Provider in Onshape
Once Onshape is configured in the identity provider and you have downloaded the identity provider's metadata file (referred to in Onshape as the configuration file), the SSO provider can be configured in Onshape.
The example images below shows a generic identity provider being configured, but the steps are the same for all identity providers.
- Sign in to your Onshape Enterprise account, using your specialized domain name, as an administrator. Select Enterprise settings from your account:
- Select Authentication from the left navigation menu:
-
In the Single sign-on (SSO) subsection, click the Configure SSO provider button:
-
The Create SSO provider dialog opens:
-
In the Name field, enter name, such as Custom SSO
-
In the Provider type dropdown, select your SSO provider from the list.
-
Leave Enable SSO provider checked.
-
Leave Disable Onshape password sign in unchecked for the moment.
Disable Onshape password sign in disables the typical Onshape password sign in for you and your users. Only the SSO provider sign in prompt is displayed for the Onshape URL. Before checking this option, ensure you can sign in to Onshape yourself (as administrator). You can return here later and enable it once sign in through your SSO provider is verified to work correctly.
选择通过 SSO 强制登录到 Onshape 还会导致用户无法直接登录到非企业域,例如 cad.onshape.com。
-
Click the Upload configuration file button:
-
-
Locate and select the metadata configuration file you downloaded previously, and click Open:
-
Click OK:
-
The file is uploaded. A notification appears when the upload is completed:
- Sign out of both your Onshape and SSO provider accounts. Be sure to do a hard refresh of both accounts. When you reach the Onshape sign-in page once again, the page has a new Sign in link at the bottom, for your SSO provider.
要登录到 Onshape,管理员必须(在其单点登录帐户中)将其用户配置为使用 Onshape 应用程序。