PFAuthenticationServerLoginWithPSNAsync

PlayStation ™️ Network 認証コードを使用してユーザーをサインインし、認証されたユーザーを必要とする API 呼び出しに後で使用できるセッション識別子を返します。

構文

HRESULT PFAuthenticationServerLoginWithPSNAsync(  
    PFServiceConfigHandle serviceConfigHandle,  
    const char* secretKey,  
    const PFAuthenticationServerLoginWithPSNRequest* request,  
    XAsyncBlock* async  
)  

パラメーター

serviceConfigHandle PFServiceConfigHandle

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

secretKey char*
In_z

サービス要求の認証に使用されるタイトル秘密鍵。

request PFAuthenticationServerLoginWithPSNRequest*

設定された要求オブジェクト。

async XAsyncBlock*
Inout

非同期操作の XAsyncBlock。

戻り値

型: HRESULT

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

解説

この API は Windows で使用できます。 ユーザーが PlayStation ™️ Network アカウントを使用して初めてサインインし、CreateAccount が True に設定されている場合、新しい PlayFab アカウントが作成され、PlayStation ™️ Network アカウントにリンクされます。 この場合、メールアドレスとユーザー名は PlayFab アカウントに関連付けられません。 それ以外の場合で、PlayFab アカウントが PlayStation ™️ Network アカウントにリンクされていない場合は、これを示すエラーが返され、タイトルがユーザーに対して PlayFab アカウントの作成をガイドできるようになります。 「ServerLinkPSNAccountAsync」、「ServerUnlinkPSNAccountAsync」も参照してください。 非同期タスクが完了したら、PFAuthenticationServerLoginWithPSNGetResult を呼び出して結果を取得します。

要件

ヘッダー: PFAuthentication.h

関連項目

PFAuthentication メンバー