CesiumGS / cesium-unreal

Bringing the 3D geospatial ecosystem to Unreal Engine
https://cesium.com/platform/cesium-for-unreal/
Apache License 2.0
885 stars 286 forks source link

Support in Unreal for Cesium ion servers running in single-user authentication mode. #1385

Closed azrogers closed 2 months ago

azrogers commented 3 months ago

Requires CesiumGS/cesium-native#841.

As described in the above ticket, we don't currently support Cesium ion Self-Hosted servers that are running in single-user authentication mode. This is inconvenient, especially since single-user mode is both the easiest to setup and the default authentication mode in Cesium ion Self-Hosted.

This PR changes the behavior of Cesium for Unreal to request the current authentication mode from the /appData endpoint before connecting, ignoring the authentication flow and token options if in single-user mode.

j9liu commented 2 months ago

Actually @azrogers, I'll look into the KTX2 related errors since they're out of scope for this PR, and they may have been related to the ktx -> ktx_read changes.

j9liu commented 2 months ago

@azrogers Thanks for resolving the suggestions! I think you're still missing a catch for adding assets from the single user server. (It works in Unity, but I don't see equivalent code here)

azrogers commented 2 months ago

@j9liu added check!