This repository was archived by the owner on Apr 25, 2021. It is now read-only.
This repository was archived by the owner on Apr 25, 2021. It is now read-only.
Expected context values #2
Open
Description
I'm seeing an issue where the assumption in the codebase isn't mapping to what I'm seeing when using the code inside Django. Specifically, the JSONWebTokenMiddleware
makes the assumption that the provided info.context
will always equal a Django-like HttpRequest
object. In practice, I'm seeing two different behaviors:
info.context
is a dictionary with arequest
key that is the request object- The request object is not always an
HttpRequest
-like object. I'm seeingstarlette.requests.Request
coming from Ariadne.
I've got a branch of code off of #1 that contains fixes to the tests to account for these differences, but I wanted to check with you before opening another PR (or merging in to #1). Am I seeing different behavior than what you see / expect when you're using this code?
Metadata
Metadata
Assignees
Labels
No labels