Replies: 1 comment 1 reply
-
Hi @nodirsid, thanks for the report. This would be fixed by #1750, which would expose the Connexion Request to the security validation functions. I'll try to prioritize it, but if it's blocking, you can look into opening a PR as well. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When running a Flask based webapp with
connexion 2.x
, therequest
object is usually populated upon triggering the validation function. I define this validation function in API security definition in yml file asx-basicInfoFunc
as part of authentication flow. Using Python 3.11.Now, when upgrading to
connexion 3.x
the same Flask basedrequest
object is not populated. When trying to access this object I get the followingRuntimeError
:RuntimeError: Working outside of operation context. This typically means that you attempted to use functionality that needed an active HTTP request. Consult the documentation on testing for information about how to avoid this problem.
The expectation is Flask's
request
should populate when using the same authentication flow inconnexion 3.x
and not throw above error.Has anyone faced the same issue yet?
Beta Was this translation helpful? Give feedback.
All reactions