-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unwrapped SteamProfile #282
Conversation
The steam_id of users authenticated through Steam was always set to 0. The response of the AuthenticateUserTicket looks like this: ``` { "response": { "params": { "result": "OK", "steamid": "76561197993712720", "ownersteamid": "76561197993712720", "vacbanned": false, "publisherbanned": false } } } ``` Now it properly sets the correct steam_id in the database.
Also worth mentioning, the steamid is returned as a string. It get's converted to a uint64. Everywhere it is used it gets converted back to a string. The database type is text. Why is the steamid getting converted to a uint64? |
Per Steam docs I can also see we use the |
I am not sure whether it's more reliable or not so I will leave the steamid as is. The response of the |
Changed the AuthenticateUserTicket version from v0001 to v1
@nielslanting Thanks! |
I retested it with the v1 endpoint and it works. But this begs the question is no one using the Steam integration? |
If the users enters an invalid ticket an account with steamid
|
It's not the most popular integration. Most PC games I'm aware of that use Nakama have preferred email/password authentication for various reasons - usually to ensure Steam and non-Steam audience accounts are unified, but it's up to them. Looks like in error cases the Steam Web API does not set a non-200 response code, and the decoding of the result does not fail so the Go default value for a uint64 of |
The steam_id of users authenticated through Steam was always set to 0.
The response of the AuthenticateUserTicket looks like this:
Now it properly sets the correct steam_id in the database.