Cauldron Authentication
This Documentation is correct for version 1.3.4 of CauldronAuthentication
What does this do?
Section titled âWhat does this do?âCauldron Authentication is responsible for authenticating Minecraft Users using the Microsoft Authentication System which is the only way to log in to Mojang now. This package provides all the tools needed to acquire a Minecraft Access token from an oauth token.
To Install the package, run the following command
npm i @jackcooperdev/cauldronauthentication --save
Using Cauldron Authentication
Section titled âUsing Cauldron AuthenticationâInformation
Section titled âInformationâTo use this package, you need to provide a way to get an access token. To do this, you need to create an Azure application. See here for more information.
Wiki.vg was a great resource that provided lots of information on how various parts of Minecraft works. It has been merged into Minecraft Wiki and can be viewed here
Functions
Section titled âFunctionsâstartAuthenticationFlow (access_token)
Section titled âstartAuthenticationFlow (access_token)âThis function performs the authentication flow turning a microsoft access token into a minecraft access token and getting the profile information for the user.
It takes the following parameters
access_token
- Microsoft Access Token Acquired through oAuth flow.
On completion, the function will return an object that can be used to launch a Minecraft Instance.
Sample Output
Section titled âSample Outputâ{ "profile": { "uuid": "069a79f444e94726a5befca90e38aaf5", "username": "Notch" }, "xui": "0000000000000000", "access_token": "ACCESS_TOKEN", "user_id": "aaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa"}
Additional Modules
Section titled âAdditional ModulesâName | Import | Description |
---|---|---|
MAS | @jackcooperdev/cauldronauthentication/mas | Provides Access to the individual functions |