You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with connexio3.0 upgrade, x-bearerInfoFunc is executing before before_request. in this case flask g object is not accessible in x-bearerInfoFunc.
Expected behaviour
currently we are at connexion 2.14 version and upgrading it to the latest version.
in x-bearerInfoFunc after validating the token, we are validating the user in database too.
we are creating a db session in before_request and then commiting and close the session in after_request. in previous version before_request is being executed before x-bearerInfoFunc. so the flask g object and db session is available in x-bearerInfoFunc.
Actual behaviour
Steps to reproduce
Additional info:
Output of the commands:
python --version
Python 3.9.18
pip show connexion | grep "^Version\:"
Version: 3.0.5
The text was updated successfully, but these errors were encountered:
Fixes#1881Fixes#1880Fixes#1876
Alternative to #1750
This PR makes the current request available to the security handlers by
injecting it as a keyword. I think this is a proper alternative to
#1750, since this is the only place in the default middleware stack
where I expect this to be needed.
Description
with connexio3.0 upgrade, x-bearerInfoFunc is executing before before_request. in this case flask g object is not accessible in x-bearerInfoFunc.
Expected behaviour
currently we are at connexion 2.14 version and upgrading it to the latest version.
in x-bearerInfoFunc after validating the token, we are validating the user in database too.
we are creating a db session in before_request and then commiting and close the session in after_request. in previous version before_request is being executed before x-bearerInfoFunc. so the flask g object and db session is available in x-bearerInfoFunc.
Actual behaviour
Steps to reproduce
Additional info:
Output of the commands:
python --version
Python 3.9.18
pip show connexion | grep "^Version\:"
Version: 3.0.5
The text was updated successfully, but these errors were encountered: