> ## 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.

# PFAuthenticationLoginWithPSNRequest

> PFAuthenticationLoginWithPSNRequest データ モデル。ユーザーが初めて PlayStation :tm: Network アカウントでサインインし、CreateAccount が true に設定されている場合について。

PFAuthenticationLoginWithPSNRequest データ モデル。ユーザーが初めて PlayStation :tm: Network アカウントでサインインし、CreateAccount が true に設定されている場合、新しい PlayFab アカウントが作成され、PlayStation :tm: Network アカウントにリンクされます。この場合、メール アドレスやユーザー名は PlayFab アカウントに関連付けられません。それ以外に、PlayStation :tm: Network アカウントにリンクされた PlayFab アカウントが存在しない場合はその旨を示すエラーが返されるので、タイトルはユーザーが PlayFab アカウントを作成できるよう誘導できます。

## 構文

```cpp theme={null}
typedef struct PFAuthenticationLoginWithPSNRequest {  
    const char* authCode;  
    bool createAccount;  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFGetPlayerCombinedInfoRequestParams const* infoRequestParameters;  
    int32_t const* issuerId;  
    const char* playerSecret;  
    const char* redirectUri;  
} PFAuthenticationLoginWithPSNRequest;  
```

### メンバー

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

PlayStation :tm: Network OAuth プロバイダーから提供される認証コード。

**`createAccount`**   bool

この ID に現在リンクされている PlayFab アカウントがない場合、自動的に PlayFab アカウントを作成します。

**`customTags`**   PFStringDictionaryEntry const\*<br />*may be nullptr*

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

**`customTagsCount`**   uint32\_t

customTags の数

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

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

**`issuerId`**   int32\_t const\*<br />*may be nullptr*

(オプション) PlayStation :tm: Network 発行者環境の ID。null の場合、既定で本番環境になります。

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

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

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

(オプション) 認証コードをリクエストする際に PlayStation :tm: Network に提供されるリダイレクト URI。

## 要件

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

## 関連項目

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


## Related topics

- [PFAuthenticationLoginWithPSNAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithpsnasync.md)
- [PFAuthenticationReLoginWithPSNAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithpsnasync.md)
- [PFAuthenticationLoginWithAppleRequest](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithapplerequest.md)
- [PFAuthenticationLoginWithXboxRequest](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithxboxrequest.md)
- [PFAuthenticationLoginWithXUserRequest](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithxuserrequest.md)
