Link Game Center Account
Links the Game Center account associated with the provided Game Center ID to the user’s PlayFab account. Logging in with a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and enabling the ‘Require secure authentication only for this app’ option.
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| AccountAlreadyLinked | 1011 |
| AccountLinkedToABannedPlayer | 1613 |
| GameCenterAuthenticationFailed | 1429 |
| InvalidGameCenterAuthRequest | 1428 |
| LinkedAccountAlreadyClaimed | 1012 |
Authorizations
This API requires a client session ticket, available from any Client Login function.
Body
Game Center identifier for the player account to be linked.
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
If another user is already linked to the account, unlink the other user and re-link. If the current user is already linked, link both accounts
The URL for the public encryption key that will be used to verify the signature.
A random value used to compute the hash and keep it randomized.
The verification signature of the authentication payload.
The integer representation of date and time that the signature was created on. PlayFab will reject authentication signatures not within 10 minutes of the server's current time.
