Skip to content
/ MCAuthLib Public
forked from GeyserMC/MCAuthLib

A Minecraft authentication library for MCProtocolLib

License

Notifications You must be signed in to change notification settings

5cmc/MCAuthLib

 
 

Repository files navigation

MCAuthLib

MCAuthLib is a library for authentication with Minecraft accounts. It is used in projects such as MCProtocolLib to handle authenticating users.

Example Code

See example/com/github/steveice10/mc/auth/test/MinecraftAuthTest.java

Authentication Types

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.

Building the Source

MCAuthLib uses Maven to manage dependencies. Simply run 'mvn clean install' in the source's directory.

Support and development

Please join us at https://discord.gg/geysermc under #mcprotocollib for discussion and support for this project.

License

MCAuthLib is licensed under the MIT license.

About

A Minecraft authentication library for MCProtocolLib

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%