- スタート アップ ガイド
- 認証
- 認証方法
- 外部アプリケーション (OAuth)
- ROPC 認証
- 範囲と権限
- プラットフォーム管理 API
ROPC 認証
ROPC による認証は、スタンドアロンから Automation Suite のデプロイに移行した Orchestrator インスタンスの後方互換性を確保するためにサポートされています。
Only Host administrators should authenticate using the /api/account/authenticate/ endpoint.
Business users should authenticate using .
リソース所有者のパスワード資格情報の認証方法はテナントが対象範囲であり、外部アプリケーションはテナント レベルで作成できないため、この方法では外部アプリを認証できません。
アクセス トークンを取得するには、次のペイロードを使用して BaseURL/[OrgName]/[TenantName]/api/account/authenticate エンドポイントに POST 要求を送信します。
{
"TenancyName": "{account_tenant_name}",
"UsernameOrEmailAddress": "{account_username}",
"Password": "{account_password}"
}
{
"TenancyName": "{account_tenant_name}",
"UsernameOrEmailAddress": "{account_username}",
"Password": "{account_password}"
}
上記の要求で、
{account_tenant_name}は Automation Suite アカウント内のテナントの名前です。{account_username}は Automation Suite アカウントのユーザー名です。{account_password}は Automation Suite アカウントへのログインに使用するパスワードです。
To find the TenancyName value of your Orchestrator instance, make a GET request to the /odata/Users/UiPath.Server.Configuration.OData.GetCurrentUser.
応答本文は、ベアラー トークンを返します。このトークンは、アプリケーションが追加の API 呼び出しを認可するために使用します。したがって、API 呼び出しの認可ヘッダーに Bearer xxxx を追加し、xxxx を {access_token} の値に置き換えます (例: Authorization: Bearer eyJhbG ... LnVxjA)。
{
"result": "{access_token}",
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
{
"result": "{access_token}",
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
- 既定では、アクセス トークンは 30 分間有効です。新しいトークンを生成するには、もう一度
api/account/authenticateエンドポイントの呼び出しを行います。 - If your Automation Suite organization uses the Azure Active Directory model, you must register external applications in Automation Suite and use the .