I was trying to pair on writing a simple app that uses Hacker
School's OAuth2 API, and hit a roadblock on the first step of
requesting an authorization from the user. Once the user authorized
my app, I would see an error that said, "The authorization server
does not support this response type". I was using a client library
that I had used before, and the server was using a what seemed like
a popular implementation for ruby on rails. Getting weird errors is
I have used OAuth2 based authentication before, but the thought of
using it always makes me a little nervous, just because
- I don't understand it very well.
- Like almost everything else, there seem to be so many libraries
for doing this in Python, and I'm never sure which one to use, or
which one I used the last time around. Not understanding the
protocol also doesn't let me debug anything that comes up.
To fix this, I set about to read and understand the OAuth2 protocol.
This blog post is an attempt to record it for future reference, and
possibly act as a reference for others.