PFAuthenticationLoginWithGooglePlayGamesServicesRequest 데이터 모델. Google Play Games 로그인은 디바이스에서 Android API용 Google Play Games 로그인을 사용하여 Google OAuth 2.0 자격 증명을 획득하고 이 API에 전달하여 수행됩니다. 사용자가 Google Play 게임 계정으로 로그인한 것이 처음이고 CreateAccount가 true로 설정된 경우, 새 PlayFab 계정이 생성되어 Google Play 게임 계정과 연결됩니다. 그렇지 않으면, Google Play 게임 계정에 연결된 PlayFab 계정이 없는 경우 이를 나타내는 오류가 반환되어 타이틀에서 사용자에게 PlayFab 계정 생성을 안내할 수 있습니다. Android 응용 프로그램에서 Google Play 게임 계정의 자격 증명을 가져오는 현재(권장) 방법은 GamesSignInClient.requestServerSideAccess()를 호출하고 이 API의 ServerAuthCode 매개 변수로 인증 코드를 보내는 것입니다. 이렇게 하려면 먼저 Google API 콘솔에서 OAuth 2.0 웹 응용 프로그램 클라이언트 ID를 만들고 해당 타이틀의 PlayFab 게임 관리자 Google 추가 기능에서 클라이언트 ID와 암호를 구성해야 합니다. 이 방법은 사용자에게 추가 Google 계정 권한을 요청할 필요가 없으므로 마찰을 최소화하는 사용자 환경을 만듭니다. https://developers.google.com/games/services/android/signin에서 서버 인증 코드를 받는 방법을 자세히 알아보세요.
구문
typedef struct PFAuthenticationLoginWithGooglePlayGamesServicesRequest {
bool createAccount;
PFStringDictionaryEntry const* customTags;
uint32_t customTagsCount;
PFGetPlayerCombinedInfoRequestParams const* infoRequestParameters;
const char* playerSecret;
const char* serverAuthCode;
} PFAuthenticationLoginWithGooglePlayGamesServicesRequest;
멤버
createAccount 부울
현재 이 ID에 연결되어 있지 않은 경우 PlayFab 계정을 자동으로 만듭니다.
customTags PFStringDictionaryEntry const*
nullptr일 수 있음
(선택 사항) 요청과 관련된 선택적 사용자 지정 태그입니다(예: 빌드 번호, 외부 추적 식별자 등).
customTagsCount uint32_t
customTags 수
infoRequestParameters PFGetPlayerCombinedInfoRequestParams const*
nullptr일 수 있음
(선택 사항) 사용자에 대해 반환할 정보 조각에 대한 플래그입니다.
playerSecret const char*
is null-terminated
(선택 사항) API 요청 서명을 확인하는 데 사용하는 플레이어 암호입니다(엔터프라이즈 전용).
serverAuthCode const char*
is null-terminated
requestServerSideAccess() (https://developers.google.com/games/services/android/signin) Google Play Games 클라이언트 API를 호출하여 클라이언트에서 가져온 OAuth 2.0 서버 인증 코드입니다.
요구 사항
헤더: PFAuthenticationTypes.h