Skip to main content

GCloud TConnd Integration

note

For Player Network authentication, backend TConnd V3.2.4 or later is required.

The login information of a player, such as the openID or Token, will be obtained through the login channel opened by Player Network SDK, MSDK, or WeGame.

Function definition

note

For projects released worldwide, the apollo cluster address should be replaced, reach out to the Player Network representative for more information.

{
// Set player login information (deprecated in V2.0.8)
// gConnector.SetUserInfo(SDK_APPID, ChannelType.XXX, OpenID, Token);

// Set authentication credentials (new in V2.0.8)
gConnector.SetAuthInfo(AuthType, ChannelType.XXX, SDK_APPID, OpenID, Token, ExtInfo);
}

Input parameters

ParameterDescription
AuthTypeAuthentication type selected by the platform

Player Network SDK: AuthType.INTL
ITOP/MSDKv5: AuthType.MSDKv5
MSDK-PC: AuthType.MSDKPC
MSDKv3: AuthType.MSDKv3
WeGame: AuthType.WeGame
AppIDAppId registered on the platform

Player Network SDK: GameID assigned by Player Network SDK
ITOP/MSDKv5/MSDK-PC: GameID of ITOP/MSDK
MSDKv3: AppID of QQ/WeChat
WeGame: Game ID of WeGame
ChannelTypeThird-party channel logged in by the player, such as QQ, WeChat, Facebook
OpenIDUser ID returned by the platform after player login

Player Network SDK/ITOP/MSDKv5/MSDK-PC: Standardized openId
MSDKv3: OpenID of the channel
WeGame: RailID
TokenToken returned by the platform after player login

Player Network SDK/ITOP/MSDKv5/MSDK-PC: token
MSDKv3: AccessToken of the channel
WeGame: session_ticket
ExtInfoExtended information required by the platform (Optional)
Example: Tag for cloud gaming authentication cgsource=gamematrix

Default: empty
  • If AuthType or ChannelType is set to None(0), no-authentication mode will be enabled for the GCloud client, and EnableNoAuth for the backend TConnd must be set to either 1 or 2.
  • GCloud.ChannelType does not cover all available third-party channel types. For games using Player Network SDK or MSDKv5, the types can be expanded to include the channels defined by the corresponding SDK. Alternatively, consult backend TConnd after customizing the types with (enum > 0x8000).

For more information regarding GCloud TConnd, reach out to the Player Network representative.