def authorized_handler(self, method='POST'):
        def create_authorized_handler(f):
            @wraps(f)
            def decorated(*args, **kwargs):
                resp = oauth_token = None
                if 'oauth_verifier' in request.args:
                    resp = RauthResponse(self.get_access_token(
                        method=method,
                        data={'oauth_verifier': request.args['oauth_verifier']},
                        **session.pop(self._session_key('request_token'), {}))
                    )

                    if resp.status != 200:
                        raise RauthException('An error occurred during OAuth 1.0a authorization', resp)

                    oauth_token = (resp.content.get('oauth_token'), resp.content.get('oauth_token_secret'))

                return f(*((resp, oauth_token) + args), **kwargs)
            return decorated
        return create_authorized_handler
The handler should expect two arguments: `response` and `oauth_token`.
dataset/ETHPy150Open joelverhagen/flask-rauth/flask_rauth.py/RauthOAuth1.authorized_handler