PFAuthenticationLoginWithGameCenterRequest データ モデル。 Game Center プレイヤー識別子 (https://developer.apple.com/library/ios/documentation/Accounts/Reference/ACAccountClassRef/index.html# // apple_ref/occ/instp/ACAccount/identifier) は、ローカル デバイスに格納される生成された文字列です。 デバイス識別子と同様に、ユーザーのアカウントが侵害される可能性があるため、プレイヤーの Game Center 識別子をエンド ユーザーに決して公開しないように注意する必要があります。 ユーザーが Game Center に初めてサインインし、CreateAccount が true に設定されている場合、新しい PlayFab アカウントが作成され、Game Center 識別子にリンクされます。 この場合、メールアドレスとユーザー名は PlayFab アカウントに関連付けられません。 それ以外の場合で、Game Center アカウントが Steam アカウントにリンクされていない場合は、これを示すエラーが返され、タイトルがユーザーに対して PlayFab アカウントの作成をガイドできるようになります。 無効な iOS Game Center プレイヤー識別子が使用されている場合は、これが返されることを示すエラーが返されます。
構文
typedef struct PFAuthenticationLoginWithGameCenterRequest {
bool createAccount;
PFStringDictionaryEntry const* customTags;
uint32_t customTagsCount;
PFGetPlayerCombinedInfoRequestParams const* infoRequestParameters;
const char* playerId;
const char* playerSecret;
const char* publicKeyUrl;
const char* salt;
const char* signature;
const char* timestamp;
} PFAuthenticationLoginWithGameCenterRequest;
メンバー
createAccount bool
現在この ID にリンクされている PlayFab アカウントがない場合は、PlayFab アカウントを自動的に作成します。
customTags PFStringDictionaryEntry const*
nullptr でもかまいません
(省略可能) 要求に関連付けられているオプションのカスタム タグ (ビルド番号、外部トレース識別子など)。
customTagsCount uint32_t
customTags の数
infoRequestParameters PFGetPlayerCombinedInfoRequestParams const*
nullptr でもかまいません
(省略可能) ユーザーに返される情報の一部を示すフラグ。
playerId const char*
が null で終わる
(省略可能) 一意の Game Center プレイヤー ID。
playerSecret const char*
が null で終わる
(省略可能) API 要求の署名を確認するために使用されるプレイヤー シークレット (エンタープライズのみ)。
publicKeyUrl const char*
が null で終わる
(省略可能) 署名の検証に使用される公開暗号化キーの URL。
salt const char*
が null で終わる
(省略可能) ハッシュを計算し、ランダム化を維持するために使用されるランダムな値。
signature const char*
が null で終わる
(省略可能) 認証ペイロードの検証署名。
timestamp const char*
が null で終わる
(省略可能) 署名が作成された日付と時刻の整数表現。 PlayFab は、サーバーの現在の時刻から 10 分以内に認証署名を拒否します。
要件
ヘッダー: PFAuthenticationTypes.h