setExecCallAsPolicy
Choose whether a hub call your game server makes for a player needs that player's pass. A game server holds one hub connection for itself (execConnectAsServer) and can make a call for a player it names. By default the hubs take the server's word for who that player is. With requiresPass true, the call is refused (PASS_REQUIRED) unless the server has shown that player's pass on its connection: the playerPass that came with the player's app token, at sign-in and at each refresh. Use it when people play the app with their own Crowded Kingdoms accounts, so that holding your org token is not enough to act for them in your hubs. Turn it on after your servers show passes: from then on, a call for a player without one is refused. The change reaches the hubs within about a minute and needs no deploy. The app must have hubs deployed (NOT_FOUND otherwise). On a tier whose hubs do not check passes yet, requiresPass true is refused with FEATURE_DISABLED and nothing changes; false is always accepted. If the answer is another error, read execCallAsPolicy and call again. Requires manage_apps on the app, with a session (super-admins bypass). An org token and an app token are refused.
setExecCallAsPolicy(
input: SetExecCallAsPolicyInput!
): ExecCallAsPolicy!
Arguments
setExecCallAsPolicy.input ● SetExecCallAsPolicyInput! non-null input
Type
ExecCallAsPolicy object
An app's choice of whether a hub call a game server makes for a player needs that player's pass.