Background: I have been using Playfab for a while in Unity to do updates from the client side, this has been working fine. But I have some needs which require a server side security.
Test Case Goal
I am trying to set up a a dead simple test case before doing anything more complicated, here is what I am trying to do:
From Unity, call a Function set up in Playfab via PlayFabCloudScriptAPI.ExecuteFunction and make sure it gets the active Player ID
Have the function properly authenticate with the Azure Function so inside the Function I have access to the Player and API
Set a value for a statistic for that player
What I've Done So Far
Set up an Azure Function. It works. If I make an Anonymous Function I can successfully hook up in Playfab and call it from the Unity Client.
Make it work with Playfab with AuthorizationLevel.Function -- this is where it falls apart, have tried dozens of examples from these forums and docs, always some variety of authentication error. I have set up Application Settings w/ my Playfab Secret Key and Title Id, and could I guess use that to connect to Server API, but isn't the point of this system to have Playfab automatically authenticate? That's what the example seem to indicate?
My Question Is there a straightforward CURRENT example, here in December 2023, that shows exactly how to set up the Azure Function to properly authenticate, and how to call it from the game API (preferably Unity).
Ideally something like the Tic Tac Toe example ( https://github.com/PlayFab/PlayFab-Samples/tree/master/Samples/CSharp/AzureFunctions/TicTacToeFunctions ) that isn't four years old and not working with current systems.
The HelloWorld example often linked ( https://learn.microsoft.com/en-us/gaming/playfab/features/automation/cloudscript-af/quickstart ) also has not been working and is unclearly documented (what is that "SetObjects foo" in terms of PlayFab data?).
Sorry for the lengthy question, was trying to make it clear I've read past threads to see if I can get some better pointers on next steps. Appreciate any help!