#Create access policy for /multiplayerserver/ListMultiplayerServers

2 messages · Page 1 of 1 (latest)

plush oracle
#

I have added the below statement to the end of my ApiPolicy using the UpdatePolicy endpoint. The objective is to let clients query MP servers to get the IP:Port information.

"Action": "*",
"Effect": "Allow",
"Principal": "*",
"Comment": "Let client list servers"```

However when calling `ListMultiplayerServers` using a client entity token, I receive the error message `Only entities of the following types may call this API: title`

I have tried alternative Resource strings with no success:

- pfrn:api--/Multiplayer/ListMultiplayerServers
- pfrn:api--/Server/ListMultiplayerServers
- pfrn:api--/Client/ListMultiplayerServers
- pfrn:api--*

Is there an error in my policy statement or in the way I am updating the policy?
frosty saddle
#

Unfortunately, I think there are service overrides in place for most of the MultiplayerServer apis and the policies you set won't take affect. As a workaround, you can consider proxying the calls via an azure function / cloudscript (agreed it is not ideal)?