Skip to content

Instantly share code, notes, and snippets.

View BlockyTheDev's full-sized avatar

BlockyTheDev

  • Germany
  • 20:10 (UTC +02:00)
View GitHub Profile
@BlockyTheDev
BlockyTheDev / yoink_token.py
Created November 25, 2021 19:22 — forked from an0ndev/yoink_token.py
pyCraft Microsoft account authentication
# 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