Hi there,
We’re developing a package-based SDK for enterprise and I am attempting to automate all things project setup for our downstream teams. In this regard, I’d love to automate correctly setting up identity providers for the Unity Authentication service.
You can do this using the Authentication Project Settings GUI, but the functionality is not exposed through any other external channels I could find.
Sifting through the code, I can see that the AuthenticationAdminClient (in Unity.Services.Authentication.Editor) is indeed capable of listing and creating ID providers, however this class is private to the Authentication.Editor assembly and thus not accessible from outside packages.
Next, I tried the Cloud Services APIs package, which exposes a way to interact with the raw REST APIs, but still with no luck. It appears that the underlying API that AuthenticationAdminClient is using (/api/player-identity/…) is not publicly documented.
I feel like I can’t achieve my goal without brittle reflection tricks or mirroring the Authentication editor package. Is there any hope for accessing this functionality from scripts rather than the Editor GUI? It’s important for us in order to minimise cognitive load and human error when setting up new apps running our software.
If not, I’d like to petition for these tools or APIs to be opened to external developers.