Commit Graph

48 Commits

Author SHA1 Message Date
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
Michael
0be5b2dd15 Fixes no-user issue 2020-05-11 19:39:33 -05:00
Mahmoud Adel
5f137da930 make token validation in PasswordResetConfirmSerializer is the first thing to do in validate() method 2020-05-10 18:05:30 +02:00
Michael
bffec48e01 Adds centralized version store 2020-05-09 17:32:05 -05:00
Francesco Pinzauti
3b0e95cee7
Compile italian language 2020-05-07 10:35:22 +02:00
Francesco Pinzauti
7b1bfecdd9 added italian language 2020-05-07 10:26:48 +02:00
Rafael Laranja
23bef47110 Compile pt_BR language messages 2020-04-26 09:52:10 -03:00
Ranet P
2602d66fef
Pass context to JWTSerializer and TokenSerializer 2020-04-21 18:17:57 +03:00
Serhiy Romanov
64e07ec755 Fix missed import_callable 2020-04-17 11:27:24 +03:00
Michael
5d2e83c3e9
Merge pull request #39 from VolkerSchiewe/master
Add token endpoints from rest_framework_simplejwt to url config
2020-04-16 21:05:27 -05:00
Michael
3f61d483e8
Merge pull request #38 from necaris/fix/import-of-simplejwt
Don't _require_ rest_framework_simplejwt
2020-04-16 01:57:20 -05:00
Michael
17e9230497
Update dj_rest_auth/urls.py
Co-Authored-By: Daniele Tricoli <eriol@mornie.org>
2020-04-16 00:28:14 -05:00
Michael
d882edcf10
Update dj_rest_auth/urls.py
Co-Authored-By: Daniele Tricoli <eriol@mornie.org>
2020-04-16 00:28:05 -05:00
Serhiy Romanov
5e8cca1633 Use import_string for getting TokenModel instead of passing class 2020-04-15 16:26:54 +03:00
VolkerSchiewe
8583c5597e Add token endpoints from rest_framework_simplejwt to url config 2020-04-15 10:44:54 +02: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
Michael
275d1c4952
Merge pull request #28 from mjlabe/logout-blacklist-jwt-token
Refresh token not blacklisted on logout
2020-04-09 21:03:07 -05: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
Jonathan Henrique Maia de Moraes
3304a6b3d3
Fix JWTSerializer USER_DETAILS_SERIALIZER import
Related to #30
2020-04-03 14:50:02 -03: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
c933513438 Bumps version, fixes import ordering 2020-03-28 11:09:07 -05:00
Michael
27226223f4
Merge pull request #3 from alichass/master
Replacing rest_framework_jwt with django-rest-framework-simplejwt
2020-03-22 06:27:54 -05:00
Michael
4070bce94b Attempts to fix tests 2020-03-22 06:20:44 -05: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
Mathias Lantean
e198f8dddb Fix if condition in LoginSerializer
As there is no reference to 'rest_auth.registration' this condition always validates to False.
We should check if 'dj_rest_auth.registration' is in INSTALLED_APPS.
2020-03-11 15:23:22 -03:00
alichass
23e88f9838 update registration views to work with simplejwt 2020-03-11 06:05:11 -04:00
alichass
4fb746e645 updated tests 2020-03-11 06:03:59 -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
a639fc6ace Fixes broken tests 2020-02-29 22:47:06 -06:00
Michael
cd2328cfde WIP 2020-02-29 21:25:20 -06:00
Michael
4c3a121676 WIP 2020-02-29 21:22:37 -06:00
Michael
a87a458ccf Removes six 2020-02-29 20:30:21 -06:00
Michael
331094b6a7 Fixes Imports 2020-02-29 19:54:53 -06:00
Michael
41dce8885a Fixes tests 2020-02-29 19:46:32 -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