dj-jwt-auth 1.9.5__py3-none-any.whl → 1.9.6__py3-none-any.whl

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.
@@ -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,15 +7,15 @@ django_jwt/roles.py,sha256=SaHK3o8T8USS4ZhG4SrHPlZQV2lMb2t1UZHT6IQtBvA,143
7
7
  django_jwt/settings.py,sha256=N3v8B4lEM-bGLmAhXhF7hOfdcjKn6afbxDFx7CETcD0,1769
8
8
  django_jwt/urls.py,sha256=ZhcnRcQ1MBRh-bS7fTa-Vkz8yuWUhv-G_uRXKLnKAs0,320
9
9
  django_jwt/user.py,sha256=v2oCoAThstFg5x5cOA9nSKlYWZzCEqhFbz63WGhE_NM,6382
10
- django_jwt/utils.py,sha256=E_D_GxIVmKQYHzKTMEWPqR1zV4l0q40vPolxhcDGQdk,1641
11
- django_jwt/views.py,sha256=RO87xCGhKClkJScn_tlSwytIzlqL-pl0vIKdFUUPOVY,4829
10
+ django_jwt/utils.py,sha256=aZBCcGKpxA3rIye2DFEvNWrAmShYtS9Ku9tSc2D1T3k,1685
11
+ django_jwt/views.py,sha256=RcVoLgMeKuaKxDWipFc3RFAgxHqvJ_qwhkb0EjH-Mlg,4852
12
12
  django_jwt/templates/django-jwt-index.html,sha256=y8f0v2WbRAFxnIU799I_MZCVsjn1sbdh7bypjdWB0lA,1353
13
13
  django_jwt/templates/admin/login.html,sha256=Nihyu0IGvDDZVvQDITXozwlj6XCQ0B8gqlyHLqVNyJc,275
14
14
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  tests/models.py,sha256=jhoJcCEsx5B9AibmoLQLDD3cEsyYzYy6dMdYhRnBVFo,338
16
16
  tests/test.py,sha256=HEy5DsEYrPmtWSdeDhgdeV2tZTYlepaWt82VoTBrta8,11828
17
17
  tests/urls.py,sha256=D5FhDSVAudurkrpkCZZPnDvgXSgifwFVB3nAlYBg7uQ,212
18
- dj_jwt_auth-1.9.5.dist-info/METADATA,sha256=r7am9IZuqkvup41Kimg2-1b-eRuMPH5KtS6YNoKTKQc,4251
19
- dj_jwt_auth-1.9.5.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
20
- dj_jwt_auth-1.9.5.dist-info/top_level.txt,sha256=58O7TdK-yECZcbmPc52KNlBFpjIUlENuZubCxaSOxus,17
21
- dj_jwt_auth-1.9.5.dist-info/RECORD,,
18
+ dj_jwt_auth-1.9.6.dist-info/METADATA,sha256=dOvBDqstn_4LI-Ba2XMF729FEXH7N0WAlfynorOu4ok,4251
19
+ dj_jwt_auth-1.9.6.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
20
+ dj_jwt_auth-1.9.6.dist-info/top_level.txt,sha256=58O7TdK-yECZcbmPc52KNlBFpjIUlENuZubCxaSOxus,17
21
+ dj_jwt_auth-1.9.6.dist-info/RECORD,,
django_jwt/utils.py CHANGED
@@ -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,
django_jwt/views.py CHANGED
@@ -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",