This repository was archived by the owner on May 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,16 @@ If you want to know more about JWT, check out the following resources:
31
31
- Django (1.6, 1.7)
32
32
- Django REST Framework (2.4, 3.0, 3.1, 3.2)
33
33
34
+ ## Security
35
+
36
+ Unlike some more typical uses of JWTs, this module only generates
37
+ authentication tokens that will verify the user who is requesting one of your DRF
38
+ protected API resources. The actual
39
+ request parameters themselves are * not* included in the JWT claims which means
40
+ they are not signed and may be tampered with. You should only expose your API
41
+ endpoints over SSL/TLS to protect against content tampering and certain kinds of
42
+ replay attacks.
43
+
34
44
## Installation
35
45
36
46
Install using ` pip ` ...
@@ -175,7 +185,8 @@ Default is `True`.
175
185
176
186
### JWT_VERIFY_EXPIRATION
177
187
178
- You can turn off expiration time verification with by setting ` JWT_VERIFY_EXPIRATION ` to ` False ` .
188
+ You can turn off expiration time verification by setting ` JWT_VERIFY_EXPIRATION ` to ` False ` .
189
+ Without expiration verification, JWTs will last forever meaning a leaked token could be used by an attacker indefinitely.
179
190
180
191
Default is ` True ` .
181
192
You can’t perform that action at this time.
0 commit comments