> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFAuthenticationLoginWithGameCenterRequest

> PFAuthenticationLoginWithGameCenterRequest データ モデル。Game Center プレイヤー識別子について。

PFAuthenticationLoginWithGameCenterRequest データ モデル。Game Center プレイヤー識別子 ([https://developer.apple.com/library/ios/documentation/Accounts/Reference/ACAccountClassRef/index.html#](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 アカウントにリンクされた PlayFab アカウントが存在しない場合はその旨を示すエラーが返されるので、タイトルはユーザーが PlayFab アカウントを作成できるよう誘導できます。無効な iOS Game Center プレイヤー識別子が使用された場合は、その旨を示すエラーが返されます。

## 構文

```cpp theme={null}
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\*<br />*may be nullptr*

(オプション) リクエストに関連付けるオプションのカスタム タグ (ビルド番号、外部トレース識別子など)。

**`customTagsCount`**   uint32\_t

customTags の数

**`infoRequestParameters`**   PFGetPlayerCombinedInfoRequestParams const\*<br />*may be nullptr*

(オプション) ユーザーに対して返す情報のフラグ。

**`playerId`**   const char\*<br />*is null-terminated*

(オプション) 一意な Game Center プレイヤー ID。

**`playerSecret`**   const char\*<br />*is null-terminated*

(オプション) API リクエスト署名の検証に使用されるプレイヤー シークレット (Enterprise 専用)。

**`publicKeyUrl`**   const char\*<br />*is null-terminated*

(オプション) 署名の検証に使用される公開暗号化鍵の URL。

**`salt`**   const char\*<br />*is null-terminated*

(オプション) ハッシュの計算に使用され、ランダム化を維持するためのランダム値。

**`signature`**   const char\*<br />*is null-terminated*

(オプション) 認証ペイロードの検証署名。

**`timestamp`**   const char\*<br />*is null-terminated*

(オプション) 署名が作成された日時の整数表現。PlayFab は、サーバーの現在時刻から 10 分以内に含まれない認証署名を拒否します。

## 要件

**ヘッダー:** PFAuthenticationTypes.h

## 関連項目

[PFAuthenticationTypes のメンバー](/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members)


## Related topics

- [PFAuthenticationLoginWithGameCenterAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithgamecenterasync.md)
- [PFAuthenticationReLoginWithGameCenterAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithgamecenterasync.md)
- [Services C API overview - PFAuthenticationTypes.h](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members.md)
- [PFAuthenticationLoginWithGameCenterGetResult](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithgamecentergetresult.md)
- [PFAuthenticationLoginWithGameCenterGetResultSize](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithgamecentergetresultsize.md)
