Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sumitsharansatsangi opened this issue May 24, 2021 · 1 comment
Open

Comments

@sumitsharansatsangi
Copy link

sumitsharansatsangi commented May 24, 2021

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 djipidi pinned this issue May 25, 2021
@djipidi djipidi unpinned this issue May 25, 2021
@djipidi
Copy link
Owner

djipidi commented May 25, 2021

thank you for your feedback !

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

(see: jaydenwindle/graphene-subscriptions#14)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants