Can someone advise or point me in the right direction as to how I can Authenticate a specific (1) Player as an Admin in the game? I think this should be possible but I'm kinda new to Playfab and Multiplayer Servers so I wanna make sure I go about it the right way if hopefully possible here.
To help us provide a better solution for your issue, we may need more details about your requirement. May I ask what does this "Admin" player do in your game? Is it like a GM? Does it need to manage and perform administrative actions for all players in the title? How is this Admin player involved with multiplayer gaming?
Yes pretty much sort of like a GM on the Level with the ability to:
1. show/hide/add/remove a mesh on the map
2. adjust purchases, but if im not mistaken I think that might be only doable in playfab/xsolla so I might have to add the user that way outside the game
Answer by SethDu · Jun 25, 2021 at 02:11 AM
It will be fine if the player is like a GM (normally there will be few GMs for each server). To be clear, client API calls have an upper bound of 100 calls per 2 minutes per IP, while server API won’t have this specific limit. You may implement GM functionalities on Cloud Script/Azure Function (CSAF)
It is easy to realize some features for GM to modify PlayFab player data/items and you may add Server API calls in specific CSAF functions. To authenticate GM account to ensure the CSAF execution API call is valid, you need to store a global static dictionary or a list in CSAF and when API is called, the caller information can be read from “context”, so that the function can compare with the static value you have defined.
You may also fine to store the credentials in Player Internal Data, or store GM PlayFab ID list in Title Data, which cannot be modified by players.
Meanwhile for your questions:
Hi Seth, thank you kindly for the advice and clarification.
1. Besides of VC & items adjustment, modifying meshes and textures is simply server behavior, where PlayFab cannot directly involve. You may implement authentication steps to grant admin player permission on the server.