dj-jwt-auth 1.5.7__tar.gz → 1.5.9__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.
Files changed (28) hide show
  1. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/PKG-INFO +1 -1
  2. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/dj_jwt_auth.egg-info/PKG-INFO +1 -1
  3. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/user.py +10 -2
  4. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/setup.cfg +1 -1
  5. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/MANIFEST.in +0 -0
  6. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/README.md +0 -0
  7. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/dj_jwt_auth.egg-info/SOURCES.txt +0 -0
  8. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/dj_jwt_auth.egg-info/dependency_links.txt +0 -0
  9. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/dj_jwt_auth.egg-info/requires.txt +0 -0
  10. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/dj_jwt_auth.egg-info/top_level.txt +0 -0
  11. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/__init__.py +0 -0
  12. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/config.py +0 -0
  13. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/exceptions.py +0 -0
  14. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/middleware.py +0 -0
  15. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/pkce.py +0 -0
  16. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/roles.py +0 -0
  17. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/settings.py +0 -0
  18. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/templates/admin/login.html +0 -0
  19. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/templates/django-jwt-index.html +0 -0
  20. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/urls.py +0 -0
  21. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/utils.py +0 -0
  22. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/views.py +0 -0
  23. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/pyproject.toml +0 -0
  24. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/setup.py +0 -0
  25. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/tests/__init__.py +0 -0
  26. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/tests/models.py +0 -0
  27. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/tests/test.py +0 -0
  28. {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/tests/urls.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dj-jwt-auth
3
- Version: 1.5.7
3
+ Version: 1.5.9
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dj-jwt-auth
3
- Version: 1.5.7
3
+ Version: 1.5.9
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
@@ -43,7 +43,7 @@ class UserHandler:
43
43
  """Collect user data from KeyCloak"""
44
44
 
45
45
  user_data = oidc_handler.get_user_info(self.access_token)
46
- log.info(f"User data: {self.kwargs}, access_token: {self.access_token}")
46
+ log.info(f"User data: {user_data}, access_token: {self.access_token}")
47
47
  self.kwargs["email"] = user_data["email"].lower()
48
48
  self.kwargs.update(mapper(user_data))
49
49
 
@@ -82,7 +82,15 @@ class UserHandler:
82
82
  if user_modified_at:
83
83
  if not user_modified_at.tzinfo:
84
84
  user_modified_at = utc.localize(user_modified_at)
85
- if self.modified_at and user_modified_at < self.modified_at:
85
+ is_modified = user_modified_at < self.modified_at
86
+
87
+ log.info(
88
+ f"User modified at: {user_modified_at}, "
89
+ f"modified_at: {self.modified_at}, "
90
+ f"is_modified: {is_modified}",
91
+ f"email: {user.email}",
92
+ )
93
+ if self.modified_at and is_modified:
86
94
  self._update_user(user)
87
95
  if self.on_update:
88
96
  self.on_update(user, self.request)
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = dj-jwt-auth
3
- version = 1.5.7
3
+ version = 1.5.9
4
4
  description = A Django package for JSON Web Token validation and verification. Using PyJWT.
5
5
  long_description = file: README.md
6
6
  url = https://www.example.com/
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes