wagnerdelima / drf-social-oauth2

drf-social-oauth2 makes it easy to integrate Django social authentication with major OAuth2 providers, i.e., Facebook, Twitter, Google, etc.
https://drf-social-oauth2.readthedocs.io/en/latest/
MIT License
271 stars 34 forks source link

Unsupported Media Type: /auth/token #140

Closed lucaleoni73 closed 1 year ago

lucaleoni73 commented 1 year ago

When trying to test the setup using curl to retrieve the token, I received an error 415 85 Unsupported Media Type ({"detail":"Unsupported media type \"application/x-www-form-urlencoded\" in request."})

To Reproduce Steps to reproduce the behavior:

  1. Setup of settings
  2. Create the application with client_id and client_secret
  3. Launch the curl POST request

Expected behavior The token should be generated and sent back

Desktop: