I am trying to test OAuth2 authentication using Django 1.11.4 and Django OAuth Toolkit. After following the tutorial (like, literally verbatim) the consumer application on heroku refuses to exchange the code generated in order to grant me an authentication token with a non-specific error.
After much fiddling, I found out that even on DEBUG
configuration the OAuth framework would through an insecure transport protocol exception (as it was through local Django server which uses http
not https
). Thus I ported the web application to an apache instance which was SSL enabled but still the consumer app throws me an unspecified error.
Please do note that I am following verbatim the tutorial outlined here and the heroku application when I have my secret key and everything setup as shown in the docs. Although the authorization link (and database entry) is generated when I go back to exchange the code for a token things fail, with a non-specific error. The result looks like this (the full server address is omitted due to obvious reasons).
Any idea on what might be wrong?