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.
- Unity
- Unreal Engine
{
// 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);
}
{
// Set player login information (deprecated in V2.0.8)
// mConnector->SetUserInfo(APPID, ChannelType, OpenID, Token, -1);
// Set authentication credentials (new in V2.0.8)
mConnector->SetAuthInfo(AuthType, ChannelType, APPID, OpenID, Token,ExtInfo);
}
Input parameters
Parameter | Description |
---|---|
AuthType | Authentication type selected by the platform Player Network SDK: AuthType.INTL ITOP/MSDKv5: AuthType.MSDKv5 MSDK-PC: AuthType.MSDKPC MSDKv3: AuthType.MSDKv3 WeGame: AuthType.WeGame |
AppID | AppId 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 |
ChannelType | Third-party channel logged in by the player, such as QQ, WeChat, Facebook |
OpenID | User ID returned by the platform after player login Player Network SDK/ITOP/MSDKv5/MSDK-PC: Standardized openId MSDKv3: OpenID of the channel WeGame: RailID |
Token | Token returned by the platform after player login Player Network SDK/ITOP/MSDKv5/MSDK-PC: token MSDKv3: AccessToken of the channel WeGame: session_ticket |
ExtInfo | Extended information required by the platform (Optional) Example: Tag for cloud gaming authentication cgsource=gamematrix Default: empty |
- If
AuthType
orChannelType
is set to None(0), no-authentication mode will be enabled for the GCloud client, andEnableNoAuth
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.