x

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:

 14000000A0BACC656042C6B7BC7AFA0501001001A5A2225B180000000100000002000000D4C4FCD9000000007B8B240119000000B20000003200000004000000BC7AFA0501001001DE640D00E35295576C02A8C0000000005872155BD821315B0100E53D0400000000003D7445FCDA75F9FA4D4463D3EB3751774A0758B8A5FFF9E7DC301F9BB1A38704411F693E3019CCE28CF393D0A29D93436B70E50F745795C725F36D1990EC4AA52168E8E007910598D2D79C28EE0FFD17B4A5809948476ECFE8EB5D93F2819247D137163ED4B785476F6A74463F38DD43CA389A30C21FF6AEA8BC352E18E715A8

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

~Nestoro

Product Version: UE 4.18
Tags:
more ▼

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

avatar image

Nestoro
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

Nestoro
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

phil_me_up
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