joelverhagen / flask-rauth

Adds OAuth 1.0/a, 2.0, and Ofly consumer support for Flask.
Other
54 stars 22 forks source link

Added ability to specify the method authorized_handler uses #2

Closed ghost closed 11 years ago

ghost commented 11 years ago

The OAuth v1 spec states that OAuth providers are minimally required to accept POST requests when retrieving request tokens, but the authorized_handler decorator uses a GET request and does not allow the user to specify any other method. I updated the authorized_handler methods to take "method" parameters that, at least in the case of RauthOAuth1 and RauthOAuth2, change the HTTP method used to retrieve the request tokens. I also updated the authorized_handler in the Ofly class for the sake of having a consistent interface for that decorator.

joelverhagen commented 11 years ago

Merged plus some associated changes. Also, updated the PyPI package.

Thanks!