Closed ajh123 closed 2 years ago
I just set up a simple local installation (using HTTP) with the latest version of that server and can't reproduce this issue. Using version 1.5.1 of the launcher, I can log in with a user I created without problems.
Output when logging the request body:
Here is my full auth server https://github.com/ajh123-development/auth-server, there have been a few updates to the original one
I've tried it with your version and it still receives the data correctly.
It might be my mysql driver for it
It's not my mysql driver because I can get a simple curl working
curl -X POST https://minersonline.ddns.net/api/authenticate \
-H 'Content-Type: application/json' \
-d '{"agent":{"name":"Minecraft","version":"1"},"username":"sam@minersonline.ddns.net","password":"testing"}'
{"user":{"username":"sam@minersonline.ddns.net","properties":[]},"accessToken":"784bfa5c202a2b5486dd615e13e9684c","clientToken":"5ac3286e566624b643f0107130c5f565","selectedProfile":{"id":"c3e994d776994264a3a75f0342a961dc","name":"samuelh2005"},"availableProfiles":[{"id":"c3e994d776994264a3a75f0342a961dc","name":"samuelh2005"}]}
That's strange. I'll take another look at it tomorrow, but as far as I can tell, the launcher does what it's supposed to (at least in the latest version)
After some more testing around, I noticed that the header for the content type was actually being sent twice, which apparently confused the server. It should now be fixed, thank you for reporting the bug :+1:
I can say that I can login now!
My auth server is based of the Mjolnir-Authentication-Server
the authenticate endpoint looks like this
When this line https://github.com/MrLetsplay2003/ShittyAuthLauncher/blob/eec7e6657a3d8fa46ff81d79e985d10554c2b065/src/me/mrletsplay/shittyauthlauncher/auth/AuthHelper.java#L33 was
and weren't deprecated, the post data was successfully received.