activities
latest
false
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
生产力活动
Last updated 2024年9月27日

应用程序 ID 和证书

摘要

  • 运行:作为后台服务。
  • Scenario: attended, unattended, and unattended with MFA enabled.
  • 应用程序权限。
  • 建议用于 Unattended 执行,或者当您想要在没有已登录用户的情况下将 Microsoft Graph API 作为应用程序(后台服务/守护程序)访问时使用。

详细信息

  • When registering your application, you must select an application type. For application ID and certificate authentication type, use a web application (which uses OAuth 2.0 client credentials flow).
  • This authentication method is similar to Application ID and secret, but it uses a certificate as a secret instead of a client secret string.

使用证书

要使用证书作为密码进行身份验证,请执行以下步骤:

  1. 在 Azure 门户中:

    • 找到已注册的 Microsoft 365 应用程序。
    • 选择 “证书和 密码”,然后上传您的证书(公钥)文件。 它可以具有以下文件类型之一: .cer.pem.crt


  2. 将表示证书的 .pfx 文件的原始内容转换为 base64 string。您可以使用 Base64.Guru 等基于网页的工具,或将 Convert.ToBase64String(System.IO.File.ReadAllBytes(pfxFilePath)) 值分配给 String 变量。
  3. 在“Microsoft 365 作用域”活动中:
  • 将“身份验证类型”设置为“应用程序 ID 和证书”。
  • CertificateAsBase64 设置为证书的 base64 表示形式。
  • 如果需要密码才能使用证书,请同时设置“证书密码” 属性的值。
  • 摘要
  • 详细信息
  • 使用证书

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo White
信任与安全
© 2005-2024 UiPath。保留所有权利。