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

# PFAuthenticationServerLoginWithIOSDeviceIDAsync

> iOS デバイス識別子を使用してユーザーをサインインさせ、認証済みユーザーを必要とする後続の API 呼び出しに使用できるセッション識別子を返します。

iOS デバイス識別子を使用してユーザーをサインインさせ、認証済みユーザーを必要とする後続の API 呼び出しに使用できるセッション識別子を返します。

## 構文

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

### パラメーター

**`serviceConfigHandle`**   PFServiceConfigHandle

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

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

サービス リクエストの認証に使用するタイトル シークレット キー。

**`request`**   [PFAuthenticationServerLoginWithIOSDeviceIDRequest\*](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationserverloginwithiosdeviceidrequest)

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

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

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

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

## 解説

この API は Windows で利用できます。iOS デバイスでは、UIDevice の uniqueIdentifier は iOS 5 以降非推奨となっており、この目的で advertisingIdentifier を使用すると Apple の認定プロセスで不合格となるため、DeviceId として identifierForVendor ([https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice\_Class/index.html#](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#) // apple\_ref/occ/instp/UIDevice/identifierForVendor) を使用する必要があります。ユーザーがその iOS デバイスで初めてサインインし、CreateAccount が true に設定されている場合、新しい PlayFab アカウントが作成され、ベンダー固有の iOS デバイス ID にリンクされます。この場合、PlayFab アカウントにはメールアドレスやユーザー名は関連付けられません。それ以外の場合、iOS デバイスにリンクされた PlayFab アカウントがなければ、その旨を示すエラーが返されるため、タイトルはユーザーに PlayFab アカウントの作成を案内できます。非同期タスクが完了したら、[PFAuthenticationServerLoginWithIOSDeviceIDGetResult](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithiosdeviceidgetresult) を呼び出して結果を取得します。

## 要件

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

## 関連項目

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


## Related topics

- [PFAuthenticationServerLoginWithIOSDeviceIDGetResultSize](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithiosdeviceidgetresultsize.md)
- [PFAuthenticationServerLoginWithIOSDeviceIDGetResult](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithiosdeviceidgetresult.md)
- [PFAuthenticationServerLoginWithAndroidDeviceIDAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithandroiddeviceidasync.md)
- [PFAuthenticationServerLoginWithAndroidDeviceIDGetResult](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithandroiddeviceidgetresult.md)
- [PFAuthenticationServerLoginWithAndroidDeviceIDGetResultSize](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithandroiddeviceidgetresultsize.md)
