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

# PFAuthenticationServerLoginWithXboxAsync

> 외부 서버 백엔드에서 XBOX Live 토큰을 사용하여 사용자를 로그인시키고, 인증된 사용자가 필요한 이후 API 호출에 사용할 수 있는 세션 식별자를 반환합니다.

외부 서버 백엔드에서 XBOX Live 토큰을 사용하여 사용자를 로그인시키고, 인증된 사용자가 필요한 이후 API 호출에 사용할 수 있는 세션 식별자를 반환합니다.

## 구문

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

### 매개 변수

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigCreateHandle 호출에서 반환된 PFServiceConfigHandle입니다.

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

서비스 요청을 인증하는 데 사용되는 Title Secret Key입니다.

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

채워진 요청 객체입니다.

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

비동기 작업을 위한 XAsyncBlock입니다.

### 반환 값

형식: HRESULT

이 API 작업의 결과 코드입니다.

## 설명

이 API는 Win32, Linux 및 macOS에서 사용할 수 있습니다. 사용자가 XBOX Live 계정으로 처음 로그인하고 CreateAccount가 true로 설정된 경우, 새 PlayFab 계정이 생성되어 XBOX Live 계정에 연결됩니다. 이 경우 PlayFab 계정에는 이메일이나 사용자 이름이 연결되지 않습니다. 그렇지 않고 XBOX Live 계정에 연결된 PlayFab 계정이 없으면, 이를 나타내는 오류가 반환되어 타이틀이 사용자에게 PlayFab 계정 생성 과정을 안내할 수 있도록 합니다. ServerLinkXboxAccountAsync, ServerUnlinkXboxAccountAsync도 참조하세요. 비동기 작업이 완료되면 [PFAuthenticationServerLoginWithXboxGetResult](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithxboxgetresult)를 호출하여 결과를 가져옵니다.

## 요구 사항

**헤더:** PFAuthentication.h

## 참고 항목

[PFAuthentication 멤버](/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationServerLoginWithXboxGetResultSize](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithxboxgetresultsize.md)
- [PFAuthenticationServerLoginWithXboxGetResult](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithxboxgetresult.md)
- [Services C API 개요 - PFAuthentication.h](/ko/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationServerLoginWithXboxIdAsync](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithxboxidasync.md)
- [PFAuthenticationServerLoginWithXboxIdGetResult](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithxboxidgetresult.md)
