> ## 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 courriel 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 retourné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 courriel 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 retourné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 d'authentification PlayStation :tm: Network facultative. Contrôle la version d'authentification PlayStation :tm: Network utilisée. Les valeurs acceptées sont "v2" et "v3".

**`createAccount`**   bool

Créer 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 (p. ex. 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 à retourner pour l'utilisateur.

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

(Facultatif) ID de l'environnement de l'émetteur PlayStation :tm: Network. Si la valeur est 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-CA/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members)


## Related topics

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