djipidi / graphene_django_crud

Turns the django ORM into a graphql API
MIT License
31 stars 6 forks source link

'NoneType' object has no attribute 'is_authenticated' #1

Open sumitsharansatsangi opened 3 years ago

sumitsharansatsangi commented 3 years ago

When I was using Subscriptions, I received the following error.

"errors": [
    "'NoneType' object has no attribute 'is_authenticated'"
  ]

I am using version 1.3.1 version of graphene-django-crud (from develop branch). I am using django_graphql_auth for authentication. It provides JWT authentication, which is working good for queries and mutation provided by this library.
The problem raise with Subscription, because this library doesn't provide support of authentication with subscription. I have achieved to this conclusion by creating a different project in this project I have not used django_graphql_auth library, instead I have used normal django authentication. Then I found the subscription runs without any error even for unauthenticated user.

I request to provide support of authentication with subscription too.

djipidi commented 3 years ago

thank you for your feedback !

your request will be resolved when graphene-subscription supports authentication.

(see: https://github.com/jaydenwindle/graphene-subscriptions/issues/14)