django-graphql-jwt icon indicating copy to clipboard operation
django-graphql-jwt copied to clipboard

`JWT_ALLOW_ANY_CLASSES` usage example

Open coler-j opened this issue 4 years ago • 5 comments

Is there a usage example of JWT_ALLOW_ANY_CLASSES?

From my interpretation it seems like it should be a list of query or mutation classes where authentication will not be applied. However... it seems like authentication needs to be manually applied at a class function level anyways (i.e. with loginRequired decorator).

So what is the point of JWT_ALLOW_ANY_CLASSES if authentication is manually applied? Wouldn't you just not add a decorator to the function you don't want authentication at?

Or is there a global way to apply authentication that is missing from the docs?

coler-j avatar Aug 28 '20 15:08 coler-j

Agreed. I've been wondering the same thing. The documentation is a bit unclear on this.

vberlier avatar Sep 06 '20 23:09 vberlier

Bumping this because just pondering on the same issue.

yashttm avatar Aug 18 '21 08:08 yashttm

I'm wondering the same thing :)

andrewtmendoza avatar Aug 31 '21 15:08 andrewtmendoza

I'm wondering the same thing....

nielsvdnieuwendijk avatar Oct 20 '22 07:10 nielsvdnieuwendijk

I have same issue

LinnaViljami avatar Jan 26 '23 15:01 LinnaViljami