Skip to content
Discussion options

You must be logged in to vote

Hi @samvv ,

This is because of how the "No Permission Handling" works when the return value can be null or a list: https://strawberry.rocks/docs/django/guide/permissions#no-permission-handling

You can pass fail_silently=False to IsAuthenticated (i.e. IsAuthenticated(fail_silently=False)), and that should make you get the authentication error.

Just noticed that fail_silently is not documented in the docs, I'm going to try to add it there soon

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@samvv
Comment options

Answer selected by samvv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants