dj-jwt-auth 1.1.1__tar.gz → 1.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/PKG-INFO +1 -5
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/dj_jwt_auth.egg-info/PKG-INFO +1 -5
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/django_jwt/middleware.py +3 -1
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/setup.cfg +1 -1
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/README.md +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/dj_jwt_auth.egg-info/SOURCES.txt +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/dj_jwt_auth.egg-info/dependency_links.txt +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/dj_jwt_auth.egg-info/requires.txt +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/dj_jwt_auth.egg-info/top_level.txt +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/django_jwt/__init__.py +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/django_jwt/settings.py +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/django_jwt/user.py +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/django_jwt/utils.py +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/django_jwt/views.py +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/pyproject.toml +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/setup.py +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/tests/__init__.py +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/tests/models.py +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/tests/test.py +0 -0
- {dj-jwt-auth-1.1.1 → dj-jwt-auth-1.1.3}/tests/urls.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dj-jwt-auth
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.3
|
|
4
4
|
Summary: A Django package for JSON Web Token validation and verification. Using PyJWT.
|
|
5
5
|
Home-page: https://www.example.com/
|
|
6
6
|
Author: Konstantin Seleznev
|
|
@@ -21,10 +21,6 @@ Classifier: Topic :: Internet :: WWW/HTTP
|
|
|
21
21
|
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
22
22
|
Requires-Python: >=3.8
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
|
-
Requires-Dist: Django>=3.0
|
|
25
|
-
Requires-Dist: pyjwt>=2.5.0
|
|
26
|
-
Requires-Dist: requests>=2.28.1
|
|
27
|
-
Requires-Dist: cryptography>=36.0.2
|
|
28
24
|
|
|
29
25
|
# Django-JWT
|
|
30
26
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dj-jwt-auth
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.3
|
|
4
4
|
Summary: A Django package for JSON Web Token validation and verification. Using PyJWT.
|
|
5
5
|
Home-page: https://www.example.com/
|
|
6
6
|
Author: Konstantin Seleznev
|
|
@@ -21,10 +21,6 @@ Classifier: Topic :: Internet :: WWW/HTTP
|
|
|
21
21
|
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
22
22
|
Requires-Python: >=3.8
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
|
-
Requires-Dist: Django>=3.0
|
|
25
|
-
Requires-Dist: pyjwt>=2.5.0
|
|
26
|
-
Requires-Dist: requests>=2.28.1
|
|
27
|
-
Requires-Dist: cryptography>=36.0.2
|
|
28
24
|
|
|
29
25
|
# Django-JWT
|
|
30
26
|
|
|
@@ -29,6 +29,8 @@ class JWTAuthMiddleware(MiddlewareMixin):
|
|
|
29
29
|
request.user = request._cached_user = UserHandler(info, request, raw_token).get_user()
|
|
30
30
|
except ExpiredSignatureError:
|
|
31
31
|
return JsonResponse(status=HTTPStatus.UNAUTHORIZED.value, data={"detail": "expired token"})
|
|
32
|
+
except UnicodeDecodeError as exc:
|
|
33
|
+
log.error(f"UnicodeDecodeError: {exc}")
|
|
32
34
|
except Exception as exc:
|
|
33
|
-
log.error("Unexpected error"
|
|
35
|
+
log.error(f"Unexpected error: {exc}")
|
|
34
36
|
return
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|