This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yoink_token.py: pyCraft-compatible Microsoft account authentication | |
# use the following function: | |
# def get_mc_auth_token (*, force_use_new_msft_account: bool = False, force_regenerate_mc_client_token: bool = False) -> minecraft.authentication.AuthenticationToken: | |
# and DO NOT forget to fill in the constants below | |
# based on https://wiki.vg/Microsoft_Authentication_Scheme and https://wiki.vg/Authentication (for client token desc) | |
# YOU HAVE TO FILL THESE IN WITH AN AZURE APP | |
# follow https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app | |
client_id = "FILL_THIS_IN" # uuid |
NewerOlder