Open bendog opened 5 years ago
Hi @bendog, any updates?
@mongkok I'm not working on the project i was using this for anymore, so I can't see how i resolved it, if i even did...
@mongkok @bendog I think the problem here is with this line
'JWT_PAYLOAD_GET_USERNAME_HANDLER': lambda payload: payload.get('sub'),
You’ll need to update the JWT_GET_USER_BY_NATURAL_KEY_HANDLER
to handle retrieving the user by id.
While I've got graphql_jwt in Graphene['Middleware'] I can't get any response from the GraphiQL interface or load the Schema.
However, if I provide the JWT it does work.
I am running a custom
JWT_DECODE_HANDLER
script to Authenticate against AWS Cognito.I'm assuming that somewhere I might need to (or have explicitly failed to) define how to handle anonymous connections?
Python 3.7.3
django==2.2.3
graphene-django==2.3.2
django-graphql-jwt==0.2.1
django-cognito-jwt==0.0.3
used forfrom django_cognito_jwt.validator import TokenError, TokenValidator
which is then extended to auth with cognitosettings.py
graphql error
Django error message