(This is a translation of a [Japanese [Content removed] by Nakagawasai Hirotomo.)
I’m using Unreal Engine 5.6.
What I am trying to achieve is to connect to the Cloud DDC via Unreal Editor, and use the build cache.
I configured authentication with the Client Credentials flow using Okta as an IdP. However, currently, both when starting the Unreal Editor and when running OidcToken.exe standalone, I fail the login and can’t use the Cloud DDC.
[Questions]
(1) What configuration is required for OidcToken.exe to use the Client Credentials flow in UE 5.6?
(2) Please see my current environment information below. Are there any missing configurations?
(3) Are there any official sample configuration for using the Cloud DDC which I can use as a reference?
[Environment]
- UE 5.6
- Using Okta as the authentication server with a custom Authorization Server already created.
- Created a scope ddc.access and allowed Client Credentials in the Access Policy
- Confirmed the following command works with curl:
curl -u "<ClientId>:<ClientSecret>" -d "grant_type=client_credentials&scope=ddc.access" "https://<okta-tenant>/oauth2/<auth-server-id>/v1/token"
[OIDC configuration]
I wrote the following in 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"]
}
}
}
}
[Logs]
When starting 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.
When running OidcToken.exe standalone:
[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