demianbrecht / sanction

A dead simple OAuth2 client implementation.
MIT License
189 stars 43 forks source link

Handle deserialization based on content-type response header #17

Open demianbrecht opened 9 years ago

demianbrecht commented 9 years ago

Deserialization of response data when swapping the code for access token is currently horribly naive. Instead, it should be able to rely on the response content type to determine deserialization method.