Unreal Engine 5.6 を使用しています。
最終的に実現したいのは、Unreal Editor から Cloud DDC に接続し、ビルドキャッシュを利用できるようにすることです。
Okta を IdP として Client Credentials による認証を構成しました。
しかし、現在は Editor 起動時も OidcToken.exe 単体実行時もログインに失敗し、Cloud DDC が利用できません。
-
質問
- UE5.6 において、
OidcToken.exeが Client Credentials フローを利用するために必要な設定が知りたいです。以下に、現在の環境情報などを記載しますが、不足している設定などがあれば教えて下さい。 - CloudDDCを利用するための具体的なサンプル設定などが公式にあれば、参考のため教えていただきたいです。
- UE5.6 において、
-
環境情報など
- UE5.6
- Okta を認証サーバーとして利用。カスタム Authorization Server を作成済み。
- スコープ
ddc.accessを作成し、Access Policy にて Client Credentials を許可済み curlで次のコマンドが成功することを確認済み:curl -u "<ClientId>:<ClientSecret>" -d "grant_type=client_credentials&scope=ddc.access" "https://<okta-tenant>/oauth2/<auth-server-id>/v1/token"
-
OIDC設定
Programs/OidcToken/oidc-configuration.json に以下の内容を記載しています。
{
"OidcToken": {
"Providers": {
"okta": {
"Identifier": "okta",
"DisplayName": "Okta",
"ServerUri": "https://<okta-tenant>/oauth2/<auth-server-id>",
"TokenEndpoint": "https://<okta-tenant>/oauth2/<auth-server-id>/v1/token",
"ClientId": "<ClientId>",
"ClientSecret": "<ClientSecret>",
"Scopes": ["ddc.access"]
}
}
}
}
- ログ
Unreal Editor 起動時
LogDesktopPlatform: Display: Launching OidcToken... [OidcToken.exe --Service="okta-headless" ... --Unattended=true]
LogDesktopPlatform: Warning: Failed to run OidcToken (...). No result file found, closed with exit code: 1
LogDerivedDataCache: Warning: Cloud: OidcToken: Failed to log in to HTTP services.
LogDerivedDataCache: Warning: Cloud: Failed to contact the service (...), will not use it.
LogDerivedDataCache: Unable to find inner node Cloud for hierarchy Hierarchy.
OidcToken.exe 単体実行
[INF] Determined status of provider okta was NotLoggedIn
[INF] Fetching access token from provider okta
[WRN] Not logged in to provider okta but was running unattended so unable to login
[WRN] Was unable to allocate a token