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
# This is how you get a minecraft token using a microsoft account (like the launcher does). | |
# The minecraft token is used to join servers, change username, skin, cape, ... | |
# License: do whatever you want. | |
# Reference: https://minecraft.wiki/w/Microsoft_authentication | |
import requests | |
print("Login at https://login.live.com/oauth20_authorize.srf?client_id=00000000402B5328&redirect_uri=https://login.live.com/oauth20_desktop.srf&response_type=code&scope=service::user.auth.xboxlive.com::MBI_SSL") | |
blank_page_url = input("After logging in you will be redirected to a blank page, paste its url here: ") |