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

# PFAuthenticationLoginWithSteamAsync

> Steam 認証チケットを使用してユーザーをサインインさせ、以降認証済みユーザーを必要とする API 呼び出しに使用できるセッション識別子を返します。

Steam 認証チケットを使用してユーザーをサインインさせ、以降認証済みユーザーを必要とする API 呼び出しに使用できるセッション識別子を返します。

## 構文

```cpp theme={null}
HRESULT PFAuthenticationLoginWithSteamAsync(  
    PFServiceConfigHandle serviceConfigHandle,  
    const PFAuthenticationLoginWithSteamRequest* request,  
    XAsyncBlock* async  
)  
```

### パラメーター

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigCreateHandle 呼び出しから返される PFServiceConfigHandle。

**`request`**   [PFAuthenticationLoginWithSteamRequest\*](/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithsteamrequest)

値が設定されたリクエスト オブジェクト。

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

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

この API は Win32、Linux、macOS で利用できます。Steam サインインは Steam Session Ticket を使用して行われます。チケットの詳細については、Steamworks SDK ([https://partner.steamgames.com/documentation/auth](https://partner.steamgames.com/documentation/auth)) を参照してください。注: Steam 認証を機能させるには、タイトルの Steam Application ID および Web API Key を PlayFab Game Manager (Add-ons Marketplace の Steam) で構成する必要があります。Web API Key は、Steamworks サイトで App ID に関連付けられた任意のグループのアクセス許可ページから取得できます。ユーザーが初めて Steam アカウントでサインインし、CreateAccount が true に設定されている場合、新しい PlayFab アカウントが作成され、提供されたアカウントの Steam ID にリンクされます。この場合、その PlayFab アカウントにはメール アドレスもユーザー名も関連付けられません。Steam アカウントにリンクされた PlayFab アカウントがない場合はそれを示すエラーが返されるため、タイトルはユーザーを PlayFab アカウントの作成に誘導できます。ClientLinkSteamAccountAsync、ClientUnlinkSteamAccountAsync も参照してください。非同期タスクが完了したら、[PFAuthenticationLoginWithSteamGetResult](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithsteamgetresult) を呼び出して結果を取得します。

## 要件

**ヘッダー:** PFAuthentication.h

## 関連項目

[PFAuthentication のメンバー](/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationLoginWithSteamGetResult](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithsteamgetresult.md)
- [PFAuthenticationLoginWithSteamGetResultSize](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithsteamgetresultsize.md)
- [クイックスタート (Windows) - Core SDK セットアップ](/ja-jp/services/playfab/sdks/unified-sdk/quickstart-core.md)
- [Services C API overview - PFAuthentication.h](/ja-jp/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [クイックスタート Win32](/ja-jp/services/playfab/sdks/c/quickstart-win32.md)
