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

About raising NotAuthenticated without token in Header request #148

Open
phuongtai opened this issue Aug 15, 2019 · 0 comments
Open

About raising NotAuthenticated without token in Header request #148

phuongtai opened this issue Aug 15, 2019 · 0 comments

Comments

@phuongtai
Copy link

phuongtai commented Aug 15, 2019

I have some enhancements with exceptions of Authentication.
When I request to API without token in header, I would encounter the below error:

AttributeError: 'AnonymousUser' object has no attribute ...

That means request accessed to this view. So I think it's not secure and I have a sollution to fix that.

I will raise NotAuthenticated of rest_framework . Document here: link
I had a pull request with that.
Thank all.

phuongtai pushed a commit to phuongtai/django-rest-framework-simplejwt that referenced this issue Aug 15, 2019
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

1 participant