Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Steam App Ticket to FString

Hello, i am struggeling to get a usable version of the Steam App Ticket to my Serverside to authenticate the client.

I am basically using these lines to obtain this ticket:

 FString SessionTicket = OnlineInterface->GetIdentityInterface()->GetAuthToken(0);
  return SessionTicket;

they give me output like this:


but this output ist completely useless for me due to the fact that usual encrypted app tickets are half the size (i can create them with my server to have a reference), and the server is not able to decrypt this. somehow the conversion to FString ruins the Format of the ticket.

i need a solution to get this ticket in a usable format into the FString.

Or maybe i am thinking wrong and there is another way to accomplish my goal.... i don't know, pls help


Product Version: UE 4.18
more ▼

asked Jun 14 '18 at 06:11 PM in C++ Programming

avatar image

18 4 4 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

the problem was not the FString conversion but the content in GetAuthToken(0). It was a session ticket not an app ticket

more ▼

answered Jun 25 '18 at 08:31 PM

avatar image

18 4 4 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

This looks like a GameSparks request to me (is that right?)

This link suggests that the problem is that you've not correctly authenticated (which would be what's required in order to get a session token). I guess this could be for a number of reasons, but the API key seems most likely:

more ▼

answered Jun 14 '18 at 06:27 PM

avatar image

1.5k 6 6 12

avatar image Nestoro Jun 14 '18 at 07:00 PM

no you are wrong i am not using GameSparks i am using a selfcoded node.js server

avatar image phil_me_up Jun 14 '18 at 07:24 PM

Ah, fair enough. So at the point your data enters the application (before the conversion to FString) is it correct?

avatar image Nestoro Jun 14 '18 at 07:31 PM

i assume that. because the serverside method works directly on that what you just described as the data that enters the application.

but i could be wrong because i am not 100% sure that OnlineInterface->GetIdentityInterface()->GetAuthToken(0); returns a encrypted steam app ticket

this are the steps i wan't to full fill:

The client must call ISteamUser::RequestEncryptedAppTicket and wait for the ISteamUser::EncryptedAppTicketResponse_t call result. The client must then call ISteamUser::GetEncryptedAppTicket to retrieve the user's encrypted ticket and send that ticket to the secured server.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question