Ben Howes

Results 3 comments of Ben Howes

I managed to patch it with something like this ``` from flask_jwt import _jwt_required from myflaskapp.auth import identity_handler def mock_jwt_required(realm): return def mock_identity_handler(payload): return User(123, '[email protected]', 'Foo', 'Bar') @patch('flask_jwt._jwt_required', side_effect=mock_jwt_required)...

@jsamoocha I see what you mean. I wasn't using `current_identity` but I just created a new test and get the same behaviour as you: Handler ``` @app.route('/api/v1/current-user', methods=['GET']) @jwt_required() def...

@mtourne In the absence of OAuth-style refresh token support, I like this approach but I'm unclear on how you would use it to decorate a handler. I guess the `func`...