Select to view content in your preferred language

Too many pop-up authentication of private layers in UE5.3

145
2
a month ago
PhucTran1
Occasional Contributor

Hello everyone!
I think the Unreal Engine SDK has bugs with authentication for private layers. I followed all the setup instructions and the authentication works, but when I add 40 private layers and then package the Windows application and open it, 40 pop-ups appear, and I have to log in 40 times to access the private layers.
Is there a way to log in once and have all the private layers appear?
Thank you!

0 Kudos
2 Replies
AShahbaz
Esri Contributor

Do all layers belong to the same portal or are authenticated with the same credentials? Does running it in the editor behave differently from the packaged app?

Theoretically if you authenticate the first layer, the other layers should load without needing to authenticate again. One thing you could try is to add the oauth configuration only to one layer. The issue here is that the order in which the layers are loaded is not guaranteed, so you may need to programmatically make sure the layer that has the oauth config is loaded and authenticated before adding the other layers using the API.

Another thing you could try is to modify `SampleOAuthAuthenticationChallengeHandler.cpp` to open the browser only for the first Challenge issued. You could for example have a queue that contains all the pending challenges and apply the result of the authentication to all the pending challenges that belong to the same portal.

 

We are working on improving the authentication workflow in future releases and this should not remain an issue. But we do appreciate any feedback on this and other issues related to authentication.

0 Kudos
PhucTran1
Occasional Contributor

Thank you for your suggestion, I will update the result here after testing on this

0 Kudos