スタンドアロンOrchestratorへのログイン時に「An unknown error has occurred. (#200)」エラーが発生する

:white_question_mark: Question
スタンドアロン Orchestrator にログインする際に、次のエラー画面に遷移する場合があります。

エラーメッセージ:

An unknown error has occurred. (#200)

エラー画面で矢印を選択すると通常画面に遷移する場合があります。

エラー発生時には、Orchestrator サーバーのイベントログに次のようなエラーが出力されます。

出力例:

UiPath.IdentityServer.Web.Stores.UiPathClientStore Cannot find client detail for client=a7f3c2d1-8b4e-49ac-b0f6-2d9c1e73f4aa

IdentityServer4.Validation.AuthorizeRequestValidator Unknown client or not enabled: "a7f3c2d1-8b4e-49ac-b0f6-2d9c1e73f4aa" {"SubjectId":"c94e1f72-3a8d-4f5b-9c2e-8a6b0d1e57f3", "RequestedScopes":"", "PromptMode":"", "Raw":{"client_id":"a7f3c2d1-8b4e-49ac-b0f6-2d9c1e73f4aa","redirect_uri":"https:\/\/xxxx.yyy.zzz\/signinsystemopenidconnect","response_type":"code id_token","scope":"openid profile email","response_mode":"form_post","nonce":"637608105228802362.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","state":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","x-client-SKU":"ID_NETSTANDARD2_0","x-client-ver":"5.5.0.0"}}

IdentityServer4.Endpoints.AuthorizeCallbackEndpoint Request validation failed

環境:

スタンドアロン Orchestrator

:light_bulb: Answer

原因:

Orchestrator へ接続する際に、認証処理中の returnUrl や client_id を含む URL をブックマークして使用している可能性があります。

この場合、URL に含まれる client_id が Orchestrator 側で有効なクライアントとして確認できず、Unknown client or not enabled や Cannot find client detail が出力されることがあります。

たとえば、次のように /identity/ や /connect/authorize/callback、client_id、nonce などを含む URL をブックマークしている場合に発生する可能性があります。

事象が起きるURL例:

https://myorch/identity/?returnUrl=%2Fidentity%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3Da7f3c2d1-8b4e-49ac-b0f6-2d9c1e73f4aa%26...

改善策:

Orchestrator へ接続する際は、認証処理中の URL ではなく、Orchestrator のベース URL を指定してください。

正しいURL例:

https://myorch/

「myorch」が Orchestrator の FQDN の場合の例です。

ブラウザーのブックマークに認証処理中の URL が登録されている場合は、Orchestrator のベース URL に修正してください。