Commit Graph

737 Commits

Author SHA1 Message Date
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
Adrian Gonzalez
b15400e9c4 Fixes JWT_TOKEN_CLAIMS_SERIALIZER get attribute 2020-07-02 23:26:48 -05:00
Michael
888791915b
Merge pull request #103 from alichass/master
Optional CSRF protection setting for unauthenticated or authenticated views
2020-07-02 01:21:46 -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
Michael
6c8b15eef7
Merge pull request #101 from noamkush/jwt_auth_dep_fix
Allow using without jwt dependency
2020-06-24 01:27:17 -05:00
Noam
b2c06fa18a Moved jwt auth class to separate file to avoid hard dependency. 2020-06-23 20:28:18 +03:00
Noam
8568c8221b Added missing requirement for tox. 2020-06-23 20:27:58 +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
de08967210 Fixes docs 2020-06-20 13:57:51 -05:00
Michael
68f35c22e6 Bumps version for release 2020-06-20 13:56:29 -05:00
Michael
068730ed1a
Merge pull request #99 from jazzband/alichass-jwt-custom-claims
Adds support for JWT Custom Claims Serializer
2020-06-20 13:53:56 -05:00
Michael
5c9a9f2e7f Merge branch 'pr91' into alichass-jwt-custom-claims 2020-06-20 13:39:20 -05:00
Michael
ed99925d72 Adds docs 2020-06-20 13:35:16 -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
b79426533b
Merge pull request #95 from chrsz/feature/demo_auth_drf
Add drf template auth customization
2020-06-20 13:12:25 -05:00
Michael
89573f6e68 Adds run step names 2020-06-20 13:02:48 -05:00
Michael
476c0bb1e2 Updates format 2020-06-20 12:57:30 -05:00
Michael
c167e8c5ae Quotes YAML 2020-06-20 12:54:54 -05:00
Michael
3f07966477 Simplfies CI config + Pins dep versions 2020-06-20 12:53:16 -05:00
Michael
3bd8a225d4 Adds Build Step 2020-06-20 12:43:07 -05:00
Michael
6598cdc323 Builds artifacts 2020-06-20 12:42:11 -05:00
Michael
e913ed7f4d Coverage.pt report + html out 2020-06-20 12:36:30 -05:00
Michael
ec3cf1cd14 Creates test output directory 2020-06-20 12:31:16 -05:00
Michael
095b1cacda Adds xml outputs 2020-06-20 12:25:55 -05:00