django-esi 5.2.0__tar.gz → 5.3.0b1__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.
Potentially problematic release.
This version of django-esi might be problematic. Click here for more details.
- {django_esi-5.2.0 → django_esi-5.3.0b1}/PKG-INFO +1 -1
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/__init__.py +1 -1
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/app_settings.py +1 -1
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/managers.py +19 -3
- {django_esi-5.2.0 → django_esi-5.3.0b1}/LICENSE +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/README.md +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/admin.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/apps.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/checks.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/clients.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/decorators.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/errors.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/de/LC_MESSAGES/django.mo +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/de/LC_MESSAGES/django.po +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/en/LC_MESSAGES/django.mo +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/en/LC_MESSAGES/django.po +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/es/LC_MESSAGES/django.mo +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/es/LC_MESSAGES/django.po +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/fr_FR/LC_MESSAGES/django.po +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/it_IT/LC_MESSAGES/django.mo +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/it_IT/LC_MESSAGES/django.po +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/ja/LC_MESSAGES/django.mo +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/ja/LC_MESSAGES/django.po +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/ko_KR/LC_MESSAGES/django.mo +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/ko_KR/LC_MESSAGES/django.po +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/ru/LC_MESSAGES/django.mo +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/ru/LC_MESSAGES/django.po +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/locale/zh_Hans/LC_MESSAGES/django.po +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/management/commands/__init__.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/management/commands/migrate_to_ssov2.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/migrations/0001_initial.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/migrations/0002_scopes_20161208.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/migrations/0003_hide_tokens_from_admin_site.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/migrations/0004_remove_unique_access_token.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/migrations/0005_remove_token_length_limit.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/migrations/0006_remove_url_length_limit.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/migrations/0007_fix_mysql_8_migration.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/migrations/0008_nullable_refresh_token.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/migrations/0009_set_old_tokens_to_sso_v1.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/migrations/0010_set_new_tokens_to_sso_v2.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/migrations/0011_add_token_indices.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/migrations/0012_fix_token_type_choices.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/migrations/__init__.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/models.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/static/esi/img/EVE_SSO_Login_Buttons_Large_Black.png +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/static/esi/img/EVE_SSO_Login_Buttons_Large_White.png +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/static/esi/img/EVE_SSO_Login_Buttons_Small_Black.png +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/static/esi/img/EVE_SSO_Login_Buttons_Small_White.png +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tasks.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/templates/esi/select_token.html +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/templatetags/__init__.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/templatetags/scope_tags.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/__init__.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/client_authed_pilot.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/client_public_pilot.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/factories.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/factories_2.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/jwt_factory.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/test_checks.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/test_clients.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/test_decorators.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/test_management_command.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/test_managers.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/test_models.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/test_swagger.json +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/test_swagger_full.json +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/test_tasks.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/test_templatetags.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/test_views.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/tests/threading_pilot.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/urls.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/esi/views.py +0 -0
- {django_esi-5.2.0 → django_esi-5.3.0b1}/pyproject.toml +0 -0
|
@@ -31,7 +31,7 @@ ESI_INFO_LOGGING_ENABLED = getattr(settings, 'ESI_INFO_LOGGING_ENABLED', False)
|
|
|
31
31
|
ESI_LOG_LEVEL_LIBRARIES = str(getattr(settings, 'ESI_LOG_LEVEL_LIBRARIES', 'INFO'))
|
|
32
32
|
"""Set log level for libraries like bravado and urlib3."""
|
|
33
33
|
|
|
34
|
-
ESI_DEBUG_RESPONSE_CONTENT_LOGGING =
|
|
34
|
+
ESI_DEBUG_RESPONSE_CONTENT_LOGGING = getattr(settings, 'ESI_DEBUG_RESPONSE_CONTENT_LOGGING', True)
|
|
35
35
|
"""Enable/Disable logging of ESI response contents."""
|
|
36
36
|
|
|
37
37
|
ESI_USER_CONTACT_EMAIL = getattr(settings, 'ESI_USER_CONTACT_EMAIL', None)
|
|
@@ -76,9 +76,25 @@ class TokenQueryset(models.QuerySet):
|
|
|
76
76
|
All tokens which are still valid.
|
|
77
77
|
"""
|
|
78
78
|
expired = self.get_expired()
|
|
79
|
-
valid =
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
valid = list(
|
|
80
|
+
self.exclude(
|
|
81
|
+
pk__in=expired
|
|
82
|
+
).values_list(
|
|
83
|
+
"pk",
|
|
84
|
+
flat=True
|
|
85
|
+
)
|
|
86
|
+
)
|
|
87
|
+
valid_expired = list(
|
|
88
|
+
expired.bulk_refresh(
|
|
89
|
+
).values_list(
|
|
90
|
+
"pk",
|
|
91
|
+
flat=True
|
|
92
|
+
)
|
|
93
|
+
)
|
|
94
|
+
_qs = self.filter(
|
|
95
|
+
pk__in=(valid + valid_expired)
|
|
96
|
+
)
|
|
97
|
+
return _qs
|
|
82
98
|
|
|
83
99
|
def require_scopes(self, scope_string: Union[str, list]) -> models.QuerySet:
|
|
84
100
|
"""Filter tokens which have at least a subset of given scopes.
|
|
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
|
|
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
|
{django_esi-5.2.0 → django_esi-5.3.0b1}/esi/static/esi/img/EVE_SSO_Login_Buttons_Large_Black.png
RENAMED
|
File without changes
|
{django_esi-5.2.0 → django_esi-5.3.0b1}/esi/static/esi/img/EVE_SSO_Login_Buttons_Large_White.png
RENAMED
|
File without changes
|
{django_esi-5.2.0 → django_esi-5.3.0b1}/esi/static/esi/img/EVE_SSO_Login_Buttons_Small_Black.png
RENAMED
|
File without changes
|
{django_esi-5.2.0 → django_esi-5.3.0b1}/esi/static/esi/img/EVE_SSO_Login_Buttons_Small_White.png
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|