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

# 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\*<br />*is null-terminated*

識別要使用哪個已設定之 OpenID Connect 提供者關聯的名稱。最多 100 個字元。

**`createAccount`**   bool

如果目前沒有 PlayFab 帳戶連結至此識別碼，則自動建立一個。

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

（選擇性）與要求相關聯的選擇性自訂標籤（例如組建編號、外部追蹤識別碼等）。

**`customTagsCount`**   uint32\_t

customTags 的計數

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

識別提供者在登入後傳回的 JSON Web 權杖 (JWT)。在識別提供者的回應中以 id\_token 欄位表示。

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

（選擇性）指定要為使用者傳回哪些資訊的旗標。

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

（選擇性）用來驗證 API 要求簽章的玩家密碼。

## 需求

**標頭：** PFAuthenticationTypes.h

## 另請參閱

[PFAuthenticationTypes 成員](/zh-TW/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members)


## Related topics

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