I think I've found a logic bug in the UE4 PlayFabPlugin related to GetEntityToken. I'm attempting to call GetEntityToken from a dedicated server binary. I've defined the "ENABLE_PLAYFABSERVER_API" for my dedicated server target. This should allow me to use the developer secret key, and appears to work as anticipated.
As I trace through the code however, I ran into this bit of branching logic:
Which, as I read it, is naively checking the value of these booleans and not really paying attention to the request's auth context/intention whatsoever.
Here is the bug:
In GetEntityToken, the `useEntityToken` bool is set to true along with `useSecretKey` and `useSessionTicket`. If you recall the branching logic above, there is no way to send this API request w/o always sending the entity token, exclusively. Locally, I tried commenting out entity token and session ticket and suddenly I was able to pass along the secret key as expected.
Am I missing something here? This feels like a bug to me. I tested with the most recently published version 1.50.201207 on UE 4.25.