Dhaval Mehta
1b2073a187
no need to pass context to get_serializer
2020-06-23 15:28:03 +05:30
Dhaval Mehta
ca355baf7a
Add compatibility for DRF 3.12
2020-06-23 13:20:22 +05:30
cbomprezzi
f05abda5b0
fix distraction errors
2020-06-15 17:57:59 +02:00
cbomprezzi
5a751e241c
add secure and samesite jwt cookie support
2020-06-15 17:12:41 +02:00
Steve Recio
2daa44e5f4
change throttle scope naming (rest_auth -> dj_rest_auth)
2020-06-03 09:17:15 -04:00
Steve Recio
c03558bd2f
fix merge issue
2020-06-02 21:02:44 -04:00
Robert Wells
0bc943ff25
Adds a tox.ini file and instructions in the readme for how to use it.
2020-05-16 13:41:45 -07:00
Rami Chowdhury
506912f832
Move import inside response method
...
This is not idiomatic, but I don't see another neat way to move it out
of the top level and still handle testing / other situations where the
settings are modified on-the-fly.
2020-04-14 15:20:43 -04:00
Rami Chowdhury
40208ea0b6
Don't _require_ rest_framework_simplejwt
...
Rather than importing it at the top level (which breaks dj-rest-auth
entirely if you aren't using JWTs and don't have the library installed),
only do the import if the user has the relevant setting enabled.
2020-04-14 13:26:52 -04:00
Marc LaBelle
1c64c0d398
changed spacing for better readability
2020-04-09 21:03:41 -04:00
Marc LaBelle
91c052fe47
changed invalid or expired and blacklisted errors to 401
2020-04-09 21:00:48 -04:00
Marc LaBelle
d5d9c69aa3
check if blacklist is installed and warn user to delete client side if cookies and blacklist are not enabled
2020-04-09 20:53:04 -04:00
Marc LaBelle
8b284f8adf
fixed typo in 500 response
2020-04-02 10:07:23 -04:00
Marc LaBelle
8f97cbc617
added rest_framework_simplejwt.token_blacklist to settings for tests, return 500 if error occurs instead of raising, added unit tests for blacklist
2020-04-02 10:01:07 -04:00
Marc LaBelle
aaab91f82b
updated exceptions to raise error if not not handled
2020-04-01 21:28:02 -04:00
Marc LaBelle
241011a353
attempt to blacklist token if no JWT_AUTH_COOKIE is found
2020-04-01 18:56:41 -04:00
Marc LaBelle
26b6e22043
blacklist refresh token on logout if REST_USE_JWT and added .idea to gitignore
2020-04-01 18:54:16 -04:00
Michael
ce3b90dea6
Re-adds previous tests
2020-03-22 05:52:26 -05:00
Michael
475e0b94c2
Support for Http-Only JWT Cookies
2020-03-22 05:41:16 -05:00
alichass
f73f3af1d3
hopefully this should work?
2020-03-19 17:09:20 -04:00
alichass
12e79aa33e
changed for use w/ cookies
2020-03-19 14:37:35 -04:00
alichass
9bbc4a3014
change standard auth stuff to work with simplejwt
2020-03-11 06:01:03 -04:00
Michael
d90e3db7eb
Uses new org
2020-03-01 16:42:28 -06:00
Michael
8bc9ba8c8a
Fixes references to serializers + isort
2020-02-29 23:56:21 -06:00
Michael
f7da276bd2
Updates names
2020-02-29 18:10:25 -06:00
Michael
92cc9c18ec
Renames project to dj-rest-auth
2020-02-29 17:59:38 -06:00