stackotter / delta-client

An open source Minecraft Java Edition client built for speed.
https://deltaclient.app
GNU General Public License v3.0
328 stars 32 forks source link

Microsoft accounts #9

Closed stackotter closed 2 years ago

stackotter commented 3 years ago

Minecraft has been migrating to a new authentication system that is linked to Microsoft/XboxLive. It is a lot more complicated than the old Mojang system and currently, there is no working implementation of it other than the one in the vanilla launcher. All other implementations get errors unless the account owner is over 18 (which is rather restrictive given that the age of a significant proportion of Minecraft players is below 18).

This issue will probably require you to have some API reverse engineering skills. I gave it a go for a day but couldn't quite figure out all the parts required to completely replicate the vanilla authentication flow. However, I did document my progress and I can send you what I've figured out so far on discord or something if you want.

Currently, there is a dodgy prototype of Microsoft authentication in the client, but it has the issues outlined above. It was created using information from wiki.vg (an incredibly helpful resource for everything Minecraft development) and the implementation in Minosoft (another open source Minecraft client project, made with java and kotlin).

stackotter commented 2 years ago

This has been implemented. Currently it only works for accounts over 18, but at least it works I guess.