question

kevin-2 avatar image
kevin-2 asked

Request Header title_key_value

POST https://{
                 {TitleID}}.playfabapi.com/Server/AuthenticateSessionTicket
          Content-Type: application/json
          X-SecretKey: <title_key_value>{
  "SessionTicket": "4D2----8D11F4249A80000-7C64AB0A9F1D8D1A.CD803BF233CE76CC" 

}

How exactly do i properly construct this header? Specifically do i replace the title_key_value with anything?

Is the sessionticket object a data object that i post?

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

·
brendan avatar image
brendan answered

That's a mix of ways to represent "you need to fill in this value" - I'll work with the tools team to get that cleaned up. What the example call shows is that you need to fill in the Title ID and Secret Key for your title. So, for example, if your Title ID was ABC and your Secret Key was 1234567890ABCDEF, the call would look like this:

POST https://ABC.playfabapi.com/Server/AuthenticateSessionTicket
        Content-Type: application/json
        X-SecretKey: 1234567890ABCDEF
{ "SessionTicket": "4D2----8D11F4249A80000-7C64AB0A9F1D8D1A.CD803BF233CE76CC" }

Your Secret Key is on the Settings page of your title in the PlayFab Game Manager.

And the value for the SessionTicket you're sending to us would be the ticket passed back to the client by our matchmaker (Client/Matchmake), which your client passes to your server, to prove that it is allowed to join that server.

10 |1200

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

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.