microsoft auth not working

Skizzme 1 Reputation point
2022-03-12T21:06:02.383+00:00

so currently i am doing a test with the microsoft auth for minecraft, and when i send my request it says "The provided request must include a 'client_id' input parameter."

import requests
params = {
            "client_id": "myclientid",
            "client_secret": "myclientsecret",
            "code": "auth_code",
            "grant_type": "authorization_code",
            "redirect_uri": "myredirecturi"
        }
r = requests.post(url="https://login.live.com/oauth20_token.srf/", params=params, headers={"Content-Type": "application/x-www-form-urlencoded"})
print(r.content)
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
6,149 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Skizzme 1 Reputation point
    2022-03-12T22:26:13.777+00:00

    nvm i figured it out. params gotta go in the body :\ (same format as in url)