ib-lundgren / flask-oauthprovider

Create a secure OAuth provider easily, powered by OAuthLib
BSD 3-Clause "New" or "Revised" License
86 stars 21 forks source link

Instead of returning response objects, raise errors. #7

Closed datalogics-kam closed 11 years ago

datalogics-kam commented 11 years ago

Some wrapping decorators (like mimerender) expect dicts, not response objects.

Raising exceptions for HTTP error responses avoids quirks of the applications. (This is also what flask.abort() eventually does).

ib-lundgren commented 11 years ago

Sounds good to me. Thanks!