title: Signing in to a website using discord Oauth (only using python requests, no selenium)
body: <p>I'm trying very hard to login to a website which uses Discord Oauth. To do this I have to make a request to</p>
  <pre><code>https://discord.com/api/v9/oauth2/authorize?client_id=896549597550358548&amp;response_type=code&amp;redirect_uri=https://www.monkeebot.xyz/oauth/discord&amp;scope=identify guilds
  </code></pre>
  <p>However. Discord returns a an errored response:</p>
  <pre><code>&lt;Response [200]&gt;
  {'location': 'https://www.monkeebot.xyz/oauth/discord?error=access_denied&amp;error_description=The+resource+owner+or+authorization+server+denied+the+request'}
  </code></pre>
  <pre><code>url = &quot;https://discord.com/api/v9/oauth2/authorize?client_id=896549597550358548&amp;response_type=code&amp;redirect_uri=https://www.monkeebot.xyz/oauth/discord&amp;scope=identify guilds&quot;
  
  headers = {
      &quot;authorization&quot;: &quot;&quot;,
      &quot;user-agent&quot;: &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36 Edg/104.0.1293.47&quot;,
      &quot;accept&quot;: &quot;*/*&quot;,
      &quot;accept-encoding&quot;: &quot;gzip, deflate, br&quot;,
      &quot;accept-language&quot;: &quot;en-GB,en;q=0.9,en-US;q=0.8&quot;,
      &quot;cache-control&quot;: &quot;no-cache&quot;,
      &quot;content-length&quot;: &quot;36&quot;,
      &quot;content-type&quot;: &quot;application/json&quot;,
      &quot;origin&quot;: &quot;https://discord.com&quot;,
      &quot;pragma&quot;: &quot;no-cache&quot;,
      &quot;referer&quot;: &quot;https://discord.com/oauth2/authorize?client_id=896549597550358548&amp;redirect_uri=https://www.monkeebot.xyz/oauth/discord&amp;response_type=code&amp;scope=identify%20guilds&quot;,
      &quot;user-agent&quot;: &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36 Edg/104.0.1293.47&quot;,
  }
  
  r = requests.post(url, headers=headers, json={}, allow_redirects=True)
  </code></pre>
  <p>Does anybody have any experience with doing this? I'm not entirely sure what I'm doing wrong. I have added the correct authorization etc, and I have tried it on different websites that use Discord oauth, but I get this error every time.</p>
  <p>Any helps/debugging tips would be very grateful.</p>