Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.27 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.27 KB

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.