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

> Modèle de données PFAuthenticationServerLoginWithPSNRequest. S'il s'agit de la première connexion d'un utilisateur avec le compte PlayStation :tm: Network et que CreateAccount a la valeur true, un nouveau compte PlayFab sera créé et lié au compte PlayStation :tm: Network. Dans ce cas, aucune adresse e-mail ni aucun nom d'utilisateur ne sera associé au compte PlayFab. Sinon, si aucun compte PlayFab n'est lié au compte PlayStation :tm: Network, une erreur l'indiquant sera renvoyée, afin que le titre puisse guider l'utilisateur dans la création d'un compte PlayFab.

Modèle de données PFAuthenticationServerLoginWithPSNRequest. S'il s'agit de la première connexion d'un utilisateur avec le compte PlayStation :tm: Network et que CreateAccount a la valeur true, un nouveau compte PlayFab sera créé et lié au compte PlayStation :tm: Network. Dans ce cas, aucune adresse e-mail ni aucun nom d'utilisateur ne sera associé au compte PlayFab. Sinon, si aucun compte PlayFab n'est lié au compte PlayStation :tm: Network, une erreur l'indiquant sera renvoyée, afin que le titre puisse guider l'utilisateur dans la création d'un compte PlayFab.

## Syntaxe

```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;  
```

### Membres

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

Code d'authentification fourni par le fournisseur OAuth PlayStation :tm: Network.

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

(Facultatif) Version facultative de l'authentification PlayStation :tm: Network. Contrôle la version de l'authentification PlayStation :tm: Network utilisée. Les valeurs acceptées sont "v2" et "v3".

**`createAccount`**   bool

Crée automatiquement un compte PlayFab si aucun n'est actuellement lié à cet ID.

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

(Facultatif) Les balises personnalisées facultatives associées à la requête (par exemple, numéro de build, identificateurs de trace externes, etc.).

**`customTagsCount`**   uint32\_t

Nombre de customTags

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

(Facultatif) Indicateurs précisant les informations à renvoyer pour l'utilisateur.

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

(Facultatif) ID de l'environnement émetteur PlayStation :tm: Network. Si null, l'environnement de production est utilisé par défaut.

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

URI de redirection fourni à PlayStation :tm: Network lors de la demande d'un code d'authentification.

## Configuration requise

**En-tête :** PFAuthenticationTypes.h

## Voir aussi

[Membres de PFAuthenticationTypes](/fr/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members)


## Related topics

- [PFAuthenticationServerLoginWithPSNAsync](/fr/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithpsnasync.md)
- [Vue d'ensemble de l'API C Services - PFAuthenticationTypes.h](/fr/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members.md)
- [PFAuthenticationServerLoginWithXboxRequest](/fr/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationserverloginwithxboxrequest.md)
- [PFAuthenticationServerLoginWithBattleNetRequest](/fr/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationserverloginwithbattlenetrequest.md)
- [PFAuthenticationLoginWithServerCustomIdRequest](/fr/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithservercustomidrequest.md)
