linotp.lib.tools.flask_migration moduleΒΆ

This module helps decouple LinOTP functions from specific versions of flask_jwt_extended (v3 / v4) It basically loads different modules/functions based on the installed version.

Note for developers: The way it works is as follows: The using code assumes flask_jwt_extended v.4 code.

from flask_migration import TestResponse

Later when we move to completely drop flask-jwt-extended v3 usage, one can replace all the code above with from flask import TestResponse