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

# PFAuthenticationServerLoginWithSteamIdAsync

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

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

## 構文

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

### パラメーター

**`serviceConfigHandle`**   PFServiceConfigHandle

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

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

サービス リクエストの認証に使用する Title Secret Key。

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

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

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

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

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

## 解説

この API は Win32、Linux、macOS で利用できます。ユーザーが初めて Steam ID でサインインし、CreateAccount が true に設定されている場合、新しい PlayFab アカウントが作成され、Steam アカウントにリンクされます。この場合、メール アドレスやユーザー名は PlayFab アカウントに関連付けられません。それ以外に、Steam アカウントにリンクされた PlayFab アカウントが存在しない場合はその旨を示すエラーが返されるので、タイトルはユーザーが PlayFab アカウントを作成できるよう誘導できます。Steam クライアント アプリにログインしていない Steam ユーザーは Steam ユーザー名のみが同期され、通貨や国などのその他のデータは、クライアントを開いた状態でログインするまで利用できません。非同期タスクが完了したら、[PFAuthenticationServerLoginWithSteamIdGetResult](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithsteamidgetresult) を呼び出して結果を取得します。

## 要件

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

## 関連項目

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


## Related topics

- [PFAuthenticationServerLoginWithSteamIdGetResultSize](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithsteamidgetresultsize.md)
- [PFAuthenticationServerLoginWithSteamIdGetResult](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithsteamidgetresult.md)
- [Services C API overview - PFAuthentication.h](/ja-jp/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationLoginWithSteamAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithsteamasync.md)
- [PFAuthenticationServerLoginWithServerCustomIdAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidasync.md)
