Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

A simple way to connect with your Microsoft account in Minecraft

License

Notifications You must be signed in to change notification settings

ImNotStealth/MCMicrosoftAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

ARCHIVED

I used to create Minecraft clients to learn Java and because those were trending at some point. When Minecraft switched from using Mojang accounts to Microsoft accounts, you needed to make your own auth implementation because it was pretty new back then. Don't forget the fact that Mojang accounts were randomly selected to migrate so not everyone had a Microsoft account This code hasn't been tested in ages but should be mostly working and feel free to do whatever you want with it! (I'm still using a good amount of it in another project of mine.)

MCMicrosoftAuth

Result: https://gyazo.com/29869b4e1438e89da8309b1843b3a118

A quick snippet to log in with Microsoft Accounts

Credits

This is a pretty simple snippet which allows you to connect to your Minecraft account through Microsoft's login window (yes the code is kinda messy and I don't know if i have the will power to change it right now)

How to use it

  • Just drag and drop the folder to your desired location (Of course because some people might ask this, yes in your MCP project @_@)
  • Make sure you have JavaFX set up as well, otherwise you'll get a ClassNotFoundException: JFXPanel
  • To login just do:
MicrosoftAuthentication.getInstance().loginWithPopUpWindow();

How to customize it

  • In MicrosoftLoginWindow.java, you can change the CLIENT_ID (which is basically the background of the login page (you'll need an Azure application to do this))
  • In that same class, you can also change the title, icon, window size etc which can be found in the class' constructor

About

A simple way to connect with your Microsoft account in Minecraft

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages