Skip to content

A hacky way to login to minecraft through microsoft fully automatically

Notifications You must be signed in to change notification settings

madmagic007/MicrosoftMinecraftAuthenticator

Repository files navigation

Microsoft Minecraft Authenticator

A hacky but extremely simple way to log in to minecraft through microsoft fully automatically


Discord

This project gets the Minecraft access token from the associated Microsoft accounts email and password, fully automatically without any popup or OAuth2 app requirement. This access token can be used for various of purposes, but mainly for creating (afk/console) clients to connect to server.


Usage

//Provide your Microsoft email/password here
AuthCredentials creds = new AuthCredentials("email", "password");
creds.doAuth(); //Does the various authorization steps

System.out.prinln(creds.mcAccessToken); //This is the almighty access token

Token lifeTimes

This process goes through various of tokens, each having their own lifetime. Refer to the wiki for details of the duration of each token. Your implementation must handle refreshing of the various tokens. The MicrosoftAuth class has multiple public functions that can be used to refresh the required tokens.

About

A hacky way to login to minecraft through microsoft fully automatically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages