Replies: 1 comment
-
I think a reply that's exactly one year late is not helpful, but I'll post it anyhow. I hit a similar problem yesterday, only difference is that I'm using BasicAuth (not bearerInfo). Nope, the Also see issue #2015 p.s. you might want to close this issue if you have it working |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are in the midst of upgrading connexion 2.x to 3.x and using it within Azure function apps (serverless). Converting FlaskApp to AsyncApp.
We are using securitySchemes (x-bearerInfoFunc) in openapi for authentication and within the method we would like to access request context in order to access request method and url path to do some authorisation checks.
We were able to access it in connexion 2.x by
flask.request.method
andflask.request.path
.However, I am unable to access it in connexion 3.0 using
from connexion import request
andrequest.context
. Facing the below error while trying to access,Working outside of operation context. Make sure your app is wrapped in a ContextMiddleware and you're processing a request while accessing the context.
Only the bearer token gets passed to the securitySchemes method by default. Is there a way to access request variables within the method?
Beta Was this translation helpful? Give feedback.
All reactions