Commit Graph

767 Commits

Author SHA1 Message Date
Jonas Lidén
e346dfa53f Moved swedish translation to the correct location 2020-11-26 19:47:11 +01:00
Yeh Yen-Ke
effd621dc1
Update serializers.py (#172)
pass id_token to tokens_to_parse
2020-11-23 22:51:50 -06:00
Michael
441b2e9962
Adds view for refreshing tokens with cookies (#173) 2020-11-19 09:29:01 -06:00
Michael
5301f1e437 Version Bumps to 2.1.1
This version includes some new functionality (refresh token support)
so I'm bumping the minor version.
2020-11-18 21:48:31 -06:00
Michael
feaea049be
Merge pull request #140 from scream4ik/master
missing non-required parameters
2020-11-17 16:46:00 -06:00
Michael
94e3805535
Merge pull request #171 from jazzband/refresh
Add support for Refresh Token Cookie
2020-11-17 16:36:49 -06:00
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
Michael
e8b68bedf5
Merge pull request #170 from jerinpetergeorge/decouple-validate-method
decoupled the LoginSerializer.validate(...) method
2020-11-17 13:34:18 -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
Michael
84f4ae260a
Merge pull request #169 from jerinpetergeorge/drf-yasg-issue-with-custom-auth-model
Adjusted `EMAIL_FIELD` and `USERNAME_FIELD` in `UserDetailsSerializer` class
2020-11-16 16:55:10 -06:00
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
817d0af8ab
Merge pull request #166 from jazzband/fix-failing-tests
Updates Test Configuration, Narrows Dependency Declaration
2020-11-11 11:00:33 -06:00
Michael
7ce1a47b4c Updates Test Configuration, Narrows Dependency Declaration 2020-11-11 10:47:12 -06:00
Slava
759f59f1ab Merge branch 'pr/1' 2020-10-08 19:14:42 +03:00
Michael
dad5bca1cb Version bump 2020-09-27 21:48:24 -05:00
Michael
73c7fb80af
Merge pull request #141 from sagarc03/add_jwt_token_verify_refresh_doc
add documentation for token verify & refresh
2020-09-08 20:30:46 -06:00
Sagar Chavan
4453096993
add documentation for token verify & refresh 2020-09-08 00:27:45 -04:00
Michael
d762e20418
Merge pull request #130 from mohmyo/master
Bug fix: register_permission_classes() & add REST_AUTH_REGISTER_PERMISSION_CLASSES to docs
2020-08-22 23:05:02 -05:00
Mahmoud Adel
7e5b3db2a1 add REST_AUTH_REGISTER_PERMISSION_CLASSES 2020-08-21 01:30:53 +02: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
33fbff3ea3 Updates action 2020-08-17 00:29:29 -05:00
Michael
d37bcab8dc Adds complete yaml for GH Action 2020-08-16 11:25:48 -05:00
Michael
bdc2a5c213 Workflow tweak 2020-08-16 11:23:11 -05:00
Michael
11e34167d2 Adds pypi Github action 2020-08-16 11:10:25 -05:00
Michael
73d26c502b Fixes docs 2020-08-09 20:03:55 -05:00
Michael
90d76179db Fixes tox config 2020-08-09 14:35:25 -05:00
Michael
d30bcb191e Bumps version for release 2020-08-09 14:07:00 -05:00
Michael
a3a7c6a4bf
Merge pull request #120 from jazzband/3.1-compatibility
Fixes tests not running explicitly declared versions + maintenance.
2020-08-09 14:05:02 -05:00
Michael
32892f3177 Fixes tests not running explicitly declared versions 2020-08-09 13:59:28 -05:00
Michael
0b59a88d04
Merge pull request #119 from mohmyo/master
Use path() and re_path() instead of the deprecated url()
2020-08-07 22:22:42 -05:00
Mahmoud Adel
854834a8cf At install_requires, changed the versions of Django and djangorestframework to 2.0 and 3.7.0 respectively as path() wasn't introduced before it 2020-08-08 02:01:21 +02: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
Michael
1ffcbfe6a8
Merge pull request #111 from mohmyo/master
Do token generation only when EMAIL_VERIFICATION is not set to 'MANDATORY'
2020-07-09 23:15:56 -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
0b65b156e2
Merge pull request #110 from ptsteadman/patch-1
Update install docs to prevent unhandled error on user deletion
2020-07-07 23:31:28 -05:00
Michael
3d72098845
Merge pull request #107 from adriangzz/master
Fixes JWT_TOKEN_CLAIMS_SERIALIZER get attribute
2020-07-07 23:29:17 -05:00
Michael
3bf8c02298 Merge branch 'pr-108' into pr-107 2020-07-07 23:18:35 -05:00
Patrick Steadman
19a188df62 fix typo 2020-07-07 22:35:01 -04:00
Patrick Steadman
e530ca71ee
Update install docs to prevent error on user deletion
If using `django-allauth`, the `allauth.socialaccount` app is *required*, or else errors will occur when deleting users (and possibly in other places).
The `allauth.socialaccount` app cannot be left out even if you're just doing email registration and not using the social auth providers.
See: https://github.com/pennersr/django-allauth/issues/1975#issuecomment-384075169

Another user of this library also got tripped up here: https://github.com/jazzband/dj-rest-auth/issues/18#issue-590399626
2020-07-07 22:32:37 -04: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