Michael
63bd99ac30
Cleans up refresh logic + Adds unit tests
2020-11-17 16:09:48 -06:00
Joel Whitaker
5d6e8ca03b
Add the ability to set the path of the refresh cookie
2020-11-17 16:09:48 -06:00
Joel Whitaker
802216567a
Fix incorrectly named Serializer in app_settings
2020-11-17 16:09:48 -06:00
Joel Whitaker
2ec9701f06
Fix import and allow the JWTSerializerWithExpiration to be overridable
2020-11-17 16:09:48 -06:00
Joel Whitaker
8a227ac60e
Add JWTSerializerWithExpiration so the expiration dates are serialized correctly
2020-11-17 16:09:48 -06:00
Joel Whitaker
f923bb5a7c
Added the ability to return the access + refresh token expiry times. This is great when Http Only cookies are enabled.
2020-11-17 16:09:48 -06:00
Joel Whitaker
bdc883dcb3
Add the ability to return the refresh token in a cookie
2020-11-17 16:09:48 -06:00
Jerin Peter George
403c719825
added a few new methods to 'LoginSerializer' class to decouple the 'validate(...)' method
2020-11-18 00:38:45 +05:30
Jerin Peter George
b4870231e6
Adjusted 'EMAIL_FIELD' and 'USERNAME_FIELD' in 'UserDetailsSerializer' class
2020-11-16 23:56:51 +05:30
Michael
7986184821
Removes <3.1 requirement
...
3.1 was a red herrring. The root cause of test failures was in all-auth
2020-11-11 22:26:51 -06:00
Michael
7ce1a47b4c
Updates Test Configuration, Narrows Dependency Declaration
2020-11-11 10:47:12 -06:00
Michael
dad5bca1cb
Version bump
2020-09-27 21:48:24 -05:00
Mahmoud Adel
8fa6fc59ce
use import_callable() to correctly import classes in REST_AUTH_REGISTER_PERMISSION_CLASSES
2020-08-21 01:02:09 +02:00
Michael
d30bcb191e
Bumps version for release
2020-08-09 14:07:00 -05:00
Michael
32892f3177
Fixes tests not running explicitly declared versions
2020-08-09 13:59:28 -05:00
Mahmoud Adel
a67cdb5a52
switch to using path() and re_path() instead of deprecated url()
2020-08-08 01:59:23 +02:00
Mahmoud Adel
140112927f
switch to using path() instead of deprecated url()
2020-08-08 01:59:10 +02:00
Michael
26482ccb2d
Updates Docs, Bumps Version
2020-07-09 23:26:53 -05:00
Mahmoud.Adel
7397ffd450
do token generation only when allauth_settings.EMAIL_VERIFICATION is not set to 'MANDATORY'
2020-07-09 10:53:41 +02:00
Michael
3bf8c02298
Merge branch 'pr-108' into pr-107
2020-07-07 23:18:35 -05:00
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
Adrian Gonzalez
b15400e9c4
Fixes JWT_TOKEN_CLAIMS_SERIALIZER get attribute
2020-07-02 23:26:48 -05: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