- Home /
Answered question
Authenticate steam user ID to avoid "fraud"
Hello! So I use SteamUser.GetSteamID(); to get the user ID of the current player in my app. The thing is I save each new user as an entry in my database. Following that, each new file the player creates locally is saved on my server and will be used to serve the data back and even retreive the data from the said user. First thing I do is get the steamID and save this as a new user entry and then everytime you want the user's data, you just have to use the UserIS which pretty much everyone can use. That makes it virtually very easy for any one to know the key of a person or to randomly find one to mess with their playthrough and change the data. Is there a way in Unity to get some kind of information that would come with the SteamID to prove it is actually the right person and not only someone that happens to know the key? The validation all happens to be on my server's-side, so this "key" (if it is a key) will never be saved and I will use a php API to compare both keys to validate identity. Also, this is not a multiplayer game.
Answer by Bunny83 · May 16 at 07:03 AM
The SteamID is just that, an ID / identification and not an authentication. You would have to use one of the methods explained here. Spcifically the Backend server example.
Yeah, I saw that yesterday, but I think I was too tired to understand properly what I was reading. I think I will delete this post. Thank you.
Follow this Question
Related Questions
How to implement authorization URL opening in browser to get auth code? 0 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Scipting Api script not working 1 Answer
Unity C# api tutorial? 1 Answer