Skip to main content

User authorization

Parameters passed to the game iFrame by GET method.

warning

If an iFrame games there is a need for navigation links, then they need to pass required parameters.

ParametersData typeRequiredDecription
api_idstringYesGame
viewer_idintYesUser
xdm_pintYesAlways
xdm_estringYesLink to portal 101XP.com
xdm_cstringYesRequest identificator
auth_keystringYesRequest signature
is_app_userbooleanFlag of installation (currently 1)

Signature calculation (the auth_key param) for user authorization:

$auth_key = hash('md5', $_GET['viewer_id'] . $_GET['api_id'] . 'PRIVATE_KEY');

if($auth_key != $_GET['auth_key']) {
die('Invalid parameters');
}

The PRIVATE_KEY could be obtained from project manager.