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

# PFAuthenticationServerLoginWithServerCustomIdAsync

> Connecte de manière sécurisée un client de jeu depuis un serveur back-end externe à l'aide d'un identificateur personnalisé pour ce joueur.

Connecte de manière sécurisée un client de jeu depuis un serveur back-end externe à l'aide d'un identificateur personnalisé pour ce joueur. Server Custom ID et Client Custom ID s'excluent mutuellement et ne peuvent pas être utilisés pour récupérer le même compte de joueur.

## Syntaxe

```cpp theme={null}
HRESULT PFAuthenticationServerLoginWithServerCustomIdAsync(  
    PFServiceConfigHandle serviceConfigHandle,  
    const char* secretKey,  
    const PFAuthenticationLoginWithServerCustomIdRequest* request,  
    XAsyncBlock* async  
)  
```

### Paramètres

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigHandle retourné par l'appel PFServiceConfigCreateHandle.

**`secretKey`**   char\*<br />*In\_z*

Clé secrète du titre utilisée pour authentifier la requête de service.

**`request`**   [PFAuthenticationLoginWithServerCustomIdRequest\*](/fr/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithservercustomidrequest)

Objet de requête renseigné.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock pour l'opération asynchrone.

### Valeur de retour

Type : HRESULT

Code de résultat de cette opération d'API.

## Notes

Cette API est disponible sur Win32, Linux et macOS. Une fois la tâche asynchrone terminée, appelez [PFAuthenticationServerLoginWithServerCustomIdGetResult](/fr/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresult) pour obtenir le résultat.

## Configuration requise

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

## Voir aussi

[Membres de PFAuthentication](/fr/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationServerLoginWithServerCustomIdGetResultSize](/fr/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresultsize.md)
- [PFAuthenticationServerLoginWithServerCustomIdGetResult](/fr/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresult.md)
- [Vue d'ensemble de l'API C Services - PFAuthentication.h](/fr/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationServerLoginWithCustomIDAsync](/fr/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithcustomidasync.md)
- [Login With Server Custom Id](/api-reference/authentication/login-with-server-custom-id.md)
