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.
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/PKG-INFO +1 -1
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/dj_jwt_auth.egg-info/PKG-INFO +1 -1
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/user.py +10 -2
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/setup.cfg +1 -1
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/MANIFEST.in +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/README.md +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/dj_jwt_auth.egg-info/SOURCES.txt +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/dj_jwt_auth.egg-info/dependency_links.txt +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/dj_jwt_auth.egg-info/requires.txt +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/dj_jwt_auth.egg-info/top_level.txt +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/__init__.py +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/config.py +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/exceptions.py +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/middleware.py +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/pkce.py +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/roles.py +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/settings.py +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/templates/admin/login.html +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/templates/django-jwt-index.html +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/urls.py +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/utils.py +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/django_jwt/views.py +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/pyproject.toml +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/setup.py +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/tests/__init__.py +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/tests/models.py +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/tests/test.py +0 -0
- {dj-jwt-auth-1.5.7 → dj-jwt-auth-1.5.9}/tests/urls.py +0 -0
|
@@ -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: {
|
|
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
|
-
|
|
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)
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|