dj-jwt-auth 1.9.5__tar.gz → 1.9.6__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.9.5 → dj_jwt_auth-1.9.6}/PKG-INFO +1 -1
  2. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/dj_jwt_auth.egg-info/PKG-INFO +1 -1
  3. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/django_jwt/utils.py +2 -2
  4. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/django_jwt/views.py +1 -1
  5. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/setup.cfg +1 -1
  6. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/MANIFEST.in +0 -0
  7. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/README.md +0 -0
  8. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/dj_jwt_auth.egg-info/SOURCES.txt +0 -0
  9. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/dj_jwt_auth.egg-info/dependency_links.txt +0 -0
  10. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/dj_jwt_auth.egg-info/requires.txt +0 -0
  11. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/dj_jwt_auth.egg-info/top_level.txt +0 -0
  12. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/django_jwt/__init__.py +0 -0
  13. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/django_jwt/config.py +0 -0
  14. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/django_jwt/exceptions.py +0 -0
  15. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/django_jwt/middleware.py +0 -0
  16. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/django_jwt/pkce.py +0 -0
  17. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/django_jwt/roles.py +0 -0
  18. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/django_jwt/settings.py +0 -0
  19. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/django_jwt/templates/admin/login.html +0 -0
  20. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/django_jwt/templates/django-jwt-index.html +0 -0
  21. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/django_jwt/urls.py +0 -0
  22. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/django_jwt/user.py +0 -0
  23. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/pyproject.toml +0 -0
  24. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/setup.py +0 -0
  25. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/tests/__init__.py +0 -0
  26. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/tests/models.py +0 -0
  27. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/tests/test.py +0 -0
  28. {dj_jwt_auth-1.9.5 → dj_jwt_auth-1.9.6}/tests/urls.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dj-jwt-auth
3
- Version: 1.9.5
3
+ Version: 1.9.6
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.9.5
3
+ Version: 1.9.6
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
@@ -7,7 +7,7 @@ import jwt
7
7
  import requests
8
8
 
9
9
  from django_jwt import settings
10
- from django_jwt.config import config
10
+ from django_jwt.config import config, SupportedAlgorithms
11
11
 
12
12
 
13
13
  def get_random_string(k: int = 32) -> str:
@@ -20,7 +20,7 @@ def get_alg(token: str) -> str:
20
20
 
21
21
 
22
22
  def get_access_token(code: str, redirect_uri: str, pkce_secret: str, client_id: str) -> str:
23
- token_endpoint = config.admin().get("token_endpoint")
23
+ token_endpoint = config.cfg(SupportedAlgorithms.ES256).get("token_endpoint")
24
24
  data = {
25
25
  "grant_type": "authorization_code",
26
26
  "client_id": client_id,
@@ -25,7 +25,7 @@ def silent_sso_check(request):
25
25
 
26
26
 
27
27
  def index_response(request, msg, status=400):
28
- logout_url = config.admin().get("end_session_endpoint")
28
+ logout_url = config.cfg(SupportedAlgorithms.ES256).get("end_session_endpoint")
29
29
  return render(
30
30
  request,
31
31
  "django-jwt-index.html",
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = dj-jwt-auth
3
- version = 1.9.5
3
+ version = 1.9.6
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