django-rest-framework-jwt icon indicating copy to clipboard operation
django-rest-framework-jwt copied to clipboard

Raise AuthenticationFailed when provided credentials were incorrect

Open unicod3 opened this issue 8 years ago • 4 comments

Fix for issue #253

unicod3 avatar Jun 09 '17 23:06 unicod3

Hey @unicod3 thanks for the PR can you check and fix the tests that are failing now ? thanks!

angvp avatar Jun 12 '17 15:06 angvp

@angvp I am working on it. I will refactor the code. I think I need to write a custom error handler for this.

unicod3 avatar Jun 12 '17 15:06 unicod3

Awesome! you're the best!

angvp avatar Jun 12 '17 16:06 angvp

@unicod3 I think you have a bug in your tests.

as stated by docs, AuthenticationFailed will return HTTP 401 and in your tests you look for 403.

bobvann avatar Jan 17 '18 15:01 bobvann