question

VipulSingh avatar image
VipulSingh asked

Integrating Google Sign-in with Playfab

I am trying to use the Rest API LoginWithGoogleAccount available in postman SDK of playfab...

The request body requires a Server Auth code, I have configured the Client ID and secret Key in my Title and I am able to get the google server auth code by a Javascript program. However when I input that authcode in the request body of LoginWithGoogleAccount... I am getting below error response :

{ "code": 400, "status": "BadRequest",

"error": "GoogleOAuthError", "errorCode": 1271,

"errorMessage": "Google API error code: redirect_uri_mismatch details: Bad Request" }

What am i doing wrong ?

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

developer-8 avatar image developer-8 commented ·

hello can i ask how to get server auth code from javascript?

0 Likes 0 ·

1 Answer

·
Hernando avatar image
Hernando answered

Could you check that the default callback for your Authorized Redirect URL in the Google settings for your project is set to "https://oauth.playfab.com/oauth2/google" ?

More information please see:Configuring Google Play Games.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jérémie Fouché avatar image Jérémie Fouché commented ·

The documentation is very old and obsolet and some steps are not showing

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.