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

# PFAuthenticationServerLoginWithPSNRequest

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

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

## 構文

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

### メンバー

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

PlayStation :tm: Network OAuth プロバイダーによって提供される認証コード。

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

(オプション) オプションの PlayStation :tm: Network 認証バージョン。使用する PlayStation :tm: Network 認証バージョンを制御します。指定できる値は "v2" と "v3" です。

**`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 の場合、既定で運用環境になります。

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

認証コードを要求する際に PlayStation :tm: Network に指定するリダイレクト URI。

## 要件

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

## 関連項目

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


## Related topics

- [PFAuthenticationServerLoginWithPSNAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithpsnasync.md)
- [PFAuthenticationServerLoginWithXboxRequest](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationserverloginwithxboxrequest.md)
- [PFAuthenticationLoginWithServerCustomIdRequest](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithservercustomidrequest.md)
- [PFAuthenticationServerLoginWithBattleNetRequest](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationserverloginwithbattlenetrequest.md)
- [PFAuthenticationServerLoginWithCustomIDRequest](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationserverloginwithcustomidrequest.md)
