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

# PFAuthenticationValidateEntityTokenAsync

> Méthode permettant à un serveur de valider un EntityToken fourni par un client. Ne peut être appelée que par l'entité de titre.

Méthode permettant à un serveur de valider un EntityToken fourni par un client. Ne peut être appelée que par l'entité de titre.

## Syntaxe

```cpp theme={null}
HRESULT PFAuthenticationValidateEntityTokenAsync(  
    PFEntityHandle entityHandle,  
    const PFAuthenticationValidateEntityTokenRequest* request,  
    XAsyncBlock* async  
)  
```

### Paramètres

**`entityHandle`**   PFEntityHandle

PFEntityHandle à utiliser pour l'authentification.

**`request`**   [PFAuthenticationValidateEntityTokenRequest\*](/fr-CA/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationvalidateentitytokenrequest)

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. À partir d'un jeton d'entité, valide qu'il n'a pas expiré ni été révoqué et retourne les détails du propriétaire. Une fois la tâche asynchrone terminée, appelez [PFAuthenticationValidateEntityTokenGetResultSize](/fr-CA/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresultsize) et [PFAuthenticationValidateEntityTokenGetResult](/fr-CA/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresult) pour obtenir le résultat.

## Configuration requise

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

## Voir aussi

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


## Related topics

- [PFAuthenticationValidateEntityTokenGetResult](/fr-CA/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresult.md)
- [Vue d'ensemble de l'API C Services - PFAuthentication.h](/fr-CA/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationValidateEntityTokenResponse](/fr-CA/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationvalidateentitytokenresponse.md)
- [PFAuthenticationValidateEntityTokenGetResultSize](/fr-CA/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresultsize.md)
- [PFAuthenticationValidateEntityTokenRequest](/fr-CA/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationvalidateentitytokenrequest.md)
