MCAuthLib is a library for authentication with Minecraft accounts. It is used in projects such as MCProtocolLib to handle authenticating users.
See example/com/github/steveice10/mc/auth/test/MinecraftAuthTest.java
Visit wiki.vg for documentation on Mojang API authentication and Microsoft's API authentication.
AuthenticationService |
Usage |
---|---|
MojangAuthenticationService |
Used for authenticating Mojang accounts. Supports regular Mojang accounts (email) and legacy accounts (username). |
MsaAuthenticationService |
Used for authenticating Microsoft accounts. Device Code auth uses the Microsoft Authentication Library (MSAL) for Java. Username/password auth uses a custom implementation using a combination of Microsoft, Mojang, and Xbox API's. |
MCAuthLib uses Maven to manage dependencies. Simply run 'mvn clean install' in the source's directory.
Please join us at https://discord.gg/geysermc under #mcprotocollib for discussion and support for this project.
MCAuthLib is licensed under the MIT license.