> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFAuthenticationLoginWithOpenIdConnectRequest

> PFAuthenticationLoginWithOpenIdConnectRequest 数据模型。

PFAuthenticationLoginWithOpenIdConnectRequest 数据模型。

## 语法

```cpp theme={null}
typedef struct PFAuthenticationLoginWithOpenIdConnectRequest {  
    const char* connectionId;  
    bool createAccount;  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    const char* idToken;  
    PFGetPlayerCombinedInfoRequestParams const* infoRequestParameters;  
    const char* playerSecret;  
} PFAuthenticationLoginWithOpenIdConnectRequest;  
```

### 成员

**`connectionId`**   const char\*\
*is null-terminated*

用于标识要使用哪个已配置的 OpenID Connect 提供程序关系的名称。最多 100 个字符。

**`createAccount`**   bool

如果当前没有 PlayFab 帐户链接到此 ID，则自动创建一个。

**`customTags`**   PFStringDictionaryEntry const\*\
*may be nullptr*

（可选）与请求关联的可选自定义标记（例如生成号、外部跟踪标识符等）。

**`customTagsCount`**   uint32\_t

customTags 的数量

**`idToken`**   const char\*\
*is null-terminated*

登录后由身份提供程序返回的 JSON Web 令牌 (JWT)。表示为身份提供程序响应中的 id\_token 字段。

**`infoRequestParameters`**   PFGetPlayerCombinedInfoRequestParams const\*\
*may be nullptr*

（可选）标志，指示要为该用户返回哪些信息。

**`playerSecret`**   const char\*\
*is null-terminated*

（可选）用于验证 API 请求签名的玩家密钥（仅限企业版）。

## 要求

**头文件：** PFAuthenticationTypes.h

## 另请参阅

[PFAuthenticationTypes 成员](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members.md)


## Related topics

- [PFAuthenticationLoginWithOpenIdConnectAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithopenidconnectasync.md)
- [PFAuthenticationReLoginWithOpenIdConnectAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithopenidconnectasync.md)
- [Login With Open Id Connect](https://docs.xbox.com/api-reference/authentication/login-with-open-id-connect.md)
- [PFAuthenticationLoginWithOpenIdConnectGetResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithopenidconnectgetresult.md)
- [PFAuthenticationLoginWithOpenIdConnectGetResultSize](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithopenidconnectgetresultsize.md)
