question

Fréderic Duguay avatar image
Fréderic Duguay asked

Xbox bad url for GetTokenAndSignatureAsync("POST", "https://playfabapi.com", "")

So I'm trying to use xbox live to login with playfab and the Documentation https://api.playfab.com/documentation/client/datatype/PlayFab.client.Models/PlayFab.client.Models.LoginWithXboxRequest tells me to use the "https://playfabapi.com" url but GetTokenAndSignatureAsync returns with Xbox GetToken Error One or more errors occurred. (Xbox Services flat C API return error code -1000 with message "Failed to get token for endpoint: https://playfabapi.com")

What url am I suppose to use here? I am able to login into xbox live so that part shouldn't be an issue.

10 |1200

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

1 Answer

·
Andy avatar image
Andy answered

Based on the error you're getting, it's likely you haven't been through the PlayFab Xbox onboarding process yet. Specifically, you have to provide us a Business Partner certificate so that we can properly decrypt the token you pass in. The error you're seeing is because, as part of that process, you have to configure XboxLive for your game to recognize the playfabapi.com endpoint.

To complete the onboarding process, you can create a support ticket or send us an email.

6 comments
10 |1200

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

Fréderic Duguay avatar image Fréderic Duguay commented ·

Thanks for your answer, the add-on page seemed to suggest that you only needed to do that if you planned to verify purchases. I'll get in touch when possible to exchange the details, any idea when tickets will work again? or do I just email ? thanks again!

0 Likes 0 ·
Andy avatar image Andy ♦♦ Fréderic Duguay commented ·

Email works. Make sure to include the title id you want this enabled on.

0 Likes 0 ·
brianjirvin avatar image brianjirvin commented ·

So what email do I use? I am having the same issue and have to "pay" just to submit a ticket.

0 Likes 0 ·
Andy avatar image Andy ♦♦ brianjirvin commented ·

This thread is old and contains out of date information. There is no onboarding required. Today, when you want to call LoginWithXbox, you can get the required token by calling GetTokenAndSignatureAsync("POST", "https://playfabapi.com/", "") as described here: https://docs.microsoft.com/en-us/rest/api/playfab/client/authentication/loginwithxbox?view=playfab-rest

When making that call, do be careful with the trailing slash in the url. It's important that it be there.

0 Likes 0 ·
brianjirvin avatar image brianjirvin Andy ♦♦ commented ·

I have a UE4 project and was able to connect using a regular user name and password, but for some reason I cant get LoginWithXBox to work using blueprints.

0 Likes 0 ·
Show more comments

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.