joelverhagen/flask-rauth — pull request #2 by ryepdx (2012-12-15 22:05:09+00:00)
Title: Added ability to specify the method authorized_handler uses

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.