Commit Graph

77 Commits

Author SHA1 Message Date
Aprimus
12173461ac Change to string import instead of serializer class 2020-07-07 20:27:01 +02:00
Aprimus
8e939e30ed fix tests override settings for TokenObtainPairSerializer 2020-07-07 18:29:18 +02:00
alichass
909ed75d51 Update test_api.py
s'more tests for my sanity
2020-06-27 14:58:29 -04:00
alichass
0bf711166e Added CSRF checks on authenticated views when client uses JWT-cookie auth
Setting can also be set to true that turns on csrf checks on unauthenticated views
2020-06-27 05:58:47 -04:00
Michael
ee3f3710e2 Bumps version 2020-06-24 01:33:52 -05:00
Michael
b990395938
Merge pull request #100 from dhaval-mehta/master
Add compatibility for DRF 3.12
2020-06-24 01:32:30 -05:00
Noam
b2c06fa18a Moved jwt auth class to separate file to avoid hard dependency. 2020-06-23 20:28:18 +03:00
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
Michael
68f35c22e6 Bumps version for release 2020-06-20 13:56:29 -05:00
alichass
1dce781942 made JWT_TOKEN_CLAIMS_SERIALIZER setting value a callable string rather than a function 2020-06-20 13:20:07 -05:00
alichass
0722ec4aee added the ability to customise claims in the jwt token - has tests
JWT claim serializer now can be set to something custom in settings:
JWT_TOKEN_CLAIMS_SERIALIZER = myTokenObtainSerializer

Ideally JWT_TOKEN_CLAIMS_SERIALIZER  would be a key in REST_AUTH_SERIALIZERS and assigned through import_callable, as with the other serializers; however, I could not quite figure out how to implement it that way
2020-06-20 13:20:07 -05:00
Michael
9dbbef4640
Merge pull request #94 from chrsz/feature/jwt_secure_samesite
Added other optionals settings variables to JWT cookie
2020-06-20 13:14:12 -05:00
Michael
3f07966477 Simplfies CI config + Pins dep versions 2020-06-20 12:53:16 -05:00
Michael
095b1cacda Adds xml outputs 2020-06-20 12:25:55 -05:00
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
Michael
75dd6250bc Bumps version 2020-06-03 22:59:59 -05:00
Michael
0fdb2f9bd8
Merge pull request #82 from brunomichetti/fix/make-verify-email-browsable
Make verify email browsable
2020-06-03 22:55:06 -05:00
Michael
05296dec44
Merge pull request #85 from mimischi/patch-1
Return refresh_token and expires_in in SocialLoginSerializer
2020-06-03 22:47:17 -05:00
Michael Gecht
ab9d6a96ae Return refresh_token and expires_in 2020-06-03 17:18:27 +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
Bruno Michetti
9e8c98e892 Add test of browsable endpoint to maintain coverage 2020-06-02 13:25:00 -03:00
Bruno Michetti
6cdcbfacd2 Make verify email browsable 2020-06-01 17:53:33 -03:00
Michael
073ea5536e Bumps to 1.0.6 2020-05-30 01:42:46 -05:00
Dmitriy Kalinin
3ac4251233 Added ukrainian locale 2020-05-30 09:30:49 +03:00
Mahmoud Adel
1fe4ba7d34
Updated PasswordResetConfirmSerializer docstring 2020-05-28 00:13:43 +02:00
Sean Farley
2a6fb3a873 serializers: import gettext_lazy; fixes #70
Per Django's warning, ugettext_lazy will be removed in a future version.
2020-05-19 19:22:42 -07: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
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